Return the name of a form:
The result of x will be:
The name property sets or returns the value of the name attribute in a form.
The name attribute specifies the name of a form.
The name property is supported in all major browsers.
Return the name property:
Set the name property:
Value | Description |
---|---|
name | The name of the form |
Return Value: | A String, representing the name of the form |
---|
Change the name of a form:
HTML reference: HTML <form> name attribute