HTML DOM ButtonObject
Button Object
The Button object represents a button.
Each time the <button> tag appears in an HTML document, a Button object is created.
You can add content, such as text or images, inside an HTML button element, which is different from the input button type.
Button Object Properties.
W3C:W3C standard.
| Property | Description | W3C |
|---|---|---|
| disabled | Sets or returns whether the button is disabled. | Yes |
| form | Returns a reference to the form containing the button. | Yes |
| name | Sets or returns the name of the button. | Yes |
| type | Returns the form type of the button. | Yes |
| value | Sets or returns the text displayed on the button. | Yes |
Standard Properties and Events
The Button object also supports standardpropertiesandevents。
Other Extensions