HTML DOM Button Object

« Previous Chapter Next Reference »

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.

Button Object Properties

W3C: W3C Standard.

Property Description W3C
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, Methods, and Events

The Button object also supports the standard properties, methods, and events.


« Previous Chapter Next Reference »

Have Any Suggestion? We Are Waiting To Hear from YOU!

Your Query was successfully sent!