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.

disabledSets or returns whether to disable the button.Yes
formReturns a reference to the form that contains the button.Yes
nameSets or returns the name of the button.Yes
typeReturns the form type of the button.Yes
valueSets or returns the text that appears on the button.Yes

Standard Properties and Events

Button objects also support standard properties and events .