Easy Tutorial
❮ Prop Win Defaultstatus Dom Obj Menu ❯

Button name Attribute


Definition and Usage

The name attribute sets or returns the value of the name attribute of a button.

The name attribute specifies the name of the button, commonly used for referencing data in backend dynamic languages after form submission, or for referencing elements in JavaScript.

Syntax


Browser Support

All major browsers support the name attribute.


Example

Example

Return the name attribute value of a button:


❮ Prop Win Defaultstatus Dom Obj Menu ❯