THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Output htmlFor Property

Output Object Reference Output Object

Example

Get the relationship between the result of the calculation, and the elements used in the calculation:

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

The result of x will be:

a b
Try it Yourself »

Definition and Usage

The htmlFor property returns the value of the for attribute of an <output> element.

The for attribute specifies the relationship between the result of the calculation, and the elements used in the calculation.

Note: This property is read-only.


Browser Support

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

Property
htmlFor 10.0  Not supported 4.0 5.1 11.0

Syntax

outputObject.htmlFor

Technical Details

Return Value: A reference to the relationship between the result of the calculation, and the elements used in the calculation

Related Pages

HTML reference: HTML <output> for attribute


Output Object Reference Output Object