HTML DOM Button object
Button object
The Button object represents a button in an HTML document.
The element does not have the default behavior, but must have an onclick event handle for use.
In HTML documents, every time a button object appears, a Button object is created.
You can access a button by traversing the form's array of elements, or by using document.getElementById().
Button object properties
W3C: W3C standard.
Attributes | describe | W3C |
---|---|---|
disabled | Set or return to whether the button is disabled. | Yes |
form | Returns a reference to a form object containing the button. | Yes |
name | Set or return the name of the button. | Yes |
type | Returns the table element type of the button. | Yes |
value | Set or return the text displayed on the button. | Yes |
Standard properties and events
Button objects also support the standard properties and events.