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 to which the given label object is assigned.

Syntax

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

p = object.htmlFor

 

Property values

Type: String

the identifier of the element to which the label element is assigned.

See also

label

 

 

Show:
© 2015 Microsoft