Easy Tutorial
❮ Dom Obj All Prop Table Cellpadding ❯

HTML DOM


Button Object

The Button object represents a button.

Each time the <button> tag appears in the HTML document, a Button object is created.

You can add content, such as text or images, within 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 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 displayed on the button. Yes

Standard Attributes and Events

The Button object also supports standard attributes and events.

❮ Dom Obj All Prop Table Cellpadding ❯