Output htmlFor-eigenschap

Definitie en gebruik

htmlFor De eigenschap retourneert Het <output>-element De HTML <output> for attribute De waarde.

De for-eigenschap bepaalt de relatie tussen het bereikte resultaat en het element dat tijdens de berekening wordt gebruikt.

Opmerking:Deze eigenschap is alleen leesbaar.

Zie ook:

HTML Referentiemanual:HTML <output> for attribute

HTML Referentiemanual:HTML <output> tag

Voorbeeld

Verwerven van de relatie tussen het bereikte resultaat en het element dat tijdens de berekening wordt gebruikt:

var x = document.getElementById("myOutput").htmlFor;

Try it yourself

Syntax

outputObject.htmlFor

Technical details

Return value: Reference to the relationship between the calculation result and the element used in the calculation.

Browser support

The numbers in the table indicate the first browser version that fully supports this property.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
10.0 Not supported 4.0 5.1 11.0