Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Form name property

Form name property

Form Object Reference 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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the name property.


Example

Example

Return the name of the form:

First name:

Last name:

The example above produces the following output:

form1

Try it »


Form Object Reference Form Object