Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Input Button type attribute

Input Button type attribute

Button Object Reference 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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the type property.


Example

Example

The following example returns the form element type of the button:

Runoob Tutorial(runoob.com)

Try it »


Button Object Reference Button Object