javascript SCRIPT htmlFor

htmlForNN 6 IE 4 DOM 1  

Read-only  

Returns the value (element ID) assigned to the for attribute of a script element. This attribute points to the ID of the element to which the script is bound when a specific event (set by the event attribute) fires for the element. Not functional in Netscape 6.

 
Example
 
if (document.getElementById("helpScript").htmlFor == "helpButton") {
    ...
}
 
Value

String.

 
Default

None.


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