Javascript Reference
Categories: label_Object

javascript label_Object htmlFor

@March 15, 2008, 1:22 a.m.
htmlForFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

Read/Write  

Provides the element id of the input element to which the label is associated (the value of the for attribute). Binds the label element to a particular input element.

 
Example
 
document.getElementById("label3").htmlFor = "chkbox3";
 
Value

String.

 
Default

None.


Powered by Linode.