Form name property
Form Object
Definition and Usage
The name property can set or return the value of the name attribute of the form.
The name property specifies the name of the form.
Syntax
formObject.name=
formname
Browser support





All major browsers support the name property.
Example
Example
Return the name of the form:
The example above produces the following output:
form1
Try it »
Form Object