<button>
HTML DOM Button object
Button object
A Button object represents a button.
A Button object is created each time the <button> tag appears in an HTML document.
In the HTML button element you can add content, such as text or images, this is different from the input button type.
Button object attributes
W3C: W3C standard.
Attribute | Description | W3C |
---|---|---|
disabled | Sets or returns whether to disable the button. | Yes |
form | Returns a reference to the form that contains 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 that appears on the button. | Yes |
Standard Properties and Events
Button objects also support standard properties and events .