The Button object represents a push button.
For each <button> tag in an HTML document, a Button object is created.
Inside an HTML button element you can put content, like text or images. This is the difference between this element and buttons created with the input element.
Note: The Button object can also use the properties/methods of:
W3C: W3C Standard.
| Property | Description | W3C |
|---|---|---|
| disabled | Sets or returns whether a button is disabled, or not | Yes |
| form | Returns a reference to the form that contains a button | Yes |
| name | Sets or returns the value of the name attribute of a button | Yes |
| type | Sets or returns the type of a button | Yes |
| value | Sets or returns the value of the value attribute of a button | Yes |
The Button object also supports the standard properties and events.
Your message has been sent to W3Schools.