Button name Property
Button Object
Definition and Usage
The name property sets or returns the value of the name attribute of the button.
The name attribute specifies the name of the button, often used to reference the data in the server-side dynamic language after form submission, or to reference the element in JavaScript. /p>
Syntax
buttonObject.name=
name
Browser support





All major browsers support the name property.
Example
Example
Return the value of the name attribute of the button:
The name of the button:
Try it »
Button Object