for attribute | htmlFor property
Sets or retrieves the object that is bound to the event script.
![]() |
Syntax
| HTML | <element for="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: String
A scripting object or an object identifier that is bound to the event script.
Standards information
- Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5
See also
Show:
