form property
Retrieves a reference to the form that the object is embedded in.
![]() |
Syntax
| JavaScript | |
|---|
Property values
Type: Object
The form.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.10.18
Remarks
Null is returned if the object is not on a form.
In Microsoft Internet Explorer 6, This property now applies to the fieldSet, isIndex, label, and legend elements.
See also
- button
- fieldSet
- HTMLProgressElement
- input type=button
- input type=checkbox
- input type=email
- input type=file
- input type=hidden
- input type=image
- input type=number
- input type=password
- input type=radio
- input type=range
- input type=reset
- input type=search
- input type=submit
- input type=tel
- input type=text
- input type=url
- isIndex
- label
- legend
- object
- option
- select
- textArea
Show:
