FREE Web Template Download
HTML CSS JAVASCRIPT SQL PHP BOOTSTRAP JQUERY ANGULARJS TUTORIALS REFERENCES EXAMPLES Blog
 

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").phpFor;

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.phpFor

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