Name
htmlFor — NN n/a IE 4 DOM n/a
Synopsis
Read/Write
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.all.label3.htmlFor = "chkbox3"
Value
String.
Default
None.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.