form

HTML (DHTML)

form Property

Internet Development Index

Retrieves a reference to the form that the object is embedded in.

What's New for Microsoft® Internet Explorer 6

This property now applies to the fieldSet, isIndex, label, and legend elements.

Syntax

HTMLN/A
Scripting[ oForm = ] object.form

Possible Values

oForm Object that receives the form.

The property is read-only. The property has no default value.

Remarks

Null is returned if the object is not on a form.

Standards Information

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

BUTTON, FIELDSET, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, LABEL, LEGEND, OBJECT, OPTION, SELECT, TEXTAREA