javascript label_Object htmlFor

htmlForNN 6 IE 4 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.


1138,Nickname,Homepage or email,Comments here,Add comment