HTML DOM ButtonObject
Button Object
The Button object represents a button in an HTML document.
This element has no default behavior, but it must have an onclick event handler in order to be used.
In an HTML document, each time the <input type="button"> tag appears, a Button object is created.
You can access a button by iterating through the form's elements[] array, or by using document.getElementById().
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 object that contains the button. | Yes |
| name | Sets or returns the name of the button. | Yes |
| type | Returns the form element 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 the standardpropertiesandevents。
Other Extensions