Search w3schools.com:

SHARE THIS PAGE

HTML DOM Button Object


Button Object

The Button object represents a push button.

For each <button> tag in an HTML document, a Button object is created.

Inside an HTML button element you can put content, like text or images. This is the difference between this element and buttons created with the input element.

Note: The Button object can also use the properties/methods of:


Button Object Properties

W3C: W3C Standard.

Property Description W3C
disabled Sets or returns whether a button is disabled, or not Yes
form Returns a reference to the form that contains a button Yes
name Sets or returns the value of the name attribute of a button Yes
type Sets or returns the type of a button Yes
value Sets or returns the value of the value attribute of a button Yes

Standard Properties and Events

The Button object also supports the standard properties and events.



Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]