Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

for attribute | htmlFor property

Sets or retrieves the object that is bound to the event script.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5

 

Syntax

HTML<element for="p" ... >
JavaScript

p = object.htmlFor

 

Property values

Type: String

A scripting object or an object identifier that is bound to the event script.

Standards information

See also

script

 

 

Show:
© 2015 Microsoft