THE WORLD'S LARGEST WEB DEVELOPER SITE

Output form Property

❮ Output Object

Example

Get the id of the form containing the <output> element:

var x = document.getElementById("myOutput").form.id;
Try it Yourself »

Definition and Usage

The form property returns a reference to the form containing the <output> element.

This property returns a form object on success.

Note: This property is read only.


Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
form 10.0 Not supported 4.0 5.1 11.0

Syntax

outputObject.form

Technical Details

Return Value: A reference to the <form> element containing the <output> element. If the <output> element is not in a form, null is returned

❮ Output Object