Label.htmlFor (Property)

A means of associating the label with an Input object.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myLabel.htmlFor

The value of this property should correspond with the ID="..." HTML tag attribute for the <INPUT> tag that instantiates the Input object the label belongs to.