Document.<form_name> (Property)

The name of a form if the document contains a <FORM> tag.

Availability:

JavaScript - 1.1
JScript - 3.0
Internet Explorer - 4.0
Netscape - 3.0
Opera - 3.0
Property/method value type:Form object
JavaScript syntax:-myDocument.aFormName
HTML syntax:<FORM NAME="aFormName">
Argument list:aFormNameThe unique name of a form

If a <FORM NAME="ABCD"> tag is present in the document, then there will be a property of the document object called document.ABCD, named after the form. This means you can access the form object directly by name.

If there are several different forms, they will each have a named property according to their names.

Warnings:

See also:Document object, Form object, NAME="..."