Output form Attribute
Definition and Usage
form
Property returns a reference to the form containing <output> Element Reference to the form.
This property returns the form object on success.
Note:This property is read-only.
See also:
HTML Reference Manual:HTML <output> Tag form Attribute
HTML Reference Manual:HTML <output> Tag
Example
Get the id of the form containing the <output> element:
var x = document.getElementById("myOutput").form.id;
Syntax
outputObject.form
Technical Details
Return Value: |
Reference to the <form> element that contains the <output> element. Returns null if the <output> element is not in the form. |
---|
Browser Support
The numbers in the table indicate the first browser version to fully support this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
10.0 | Not Supported | 4.0 | 5.1 | 11.0 |