Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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