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

HTML DOM Submit type property

Submit type property

Submit Object Reference The Submit object


Definition and Usage

The type property can return the form element type of the confirm button.

For a confirm button, this property is always "submit".

Syntax

submitObject.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 confirm button:

Runoob Tutorial(runoob.com)

Email:

Try it »


Submit Object Reference The Submit object