Name
htmlFor — NN n/a IE 4 DOM n/a
Synopsis
Read-only
Returns the value (element ID) assigned to the FOR
attribute of a SCRIPT
element. This attribute
defines the document element to which the script is bound when a
specific event (set by the EVENT
attribute) fires
for the element.
Example
if (document.all.scripts[3].htmlFor == "helpButton") { ... }
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.