Input Button type attribute
Button Object
Definition and Usage
The type attribute returns the type of the form element.
The type of the Button object is always "button".
Syntax
buttonObject.type
Browser support





All major browsers support the type property.
Example
Example
The following example returns the form element type of the button:
Try it »
Button Object