htmlFor
all
alt
ch
dir
for
id
low
min
rel
top
url
URL
urn
TOC
Collapse the table of content
Expand the table of content

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:
© 2016 Microsoft