Input Submit type Attribute

Definition and Usage

type The property returns the form element type of the submit button.

For the submit button object, this property will always return "submit".

Example

Find out which type of form element the submit button is:

var x = document.getElementById("mySubmit").type;

Try It Yourself

Syntax

submitObject.type

Technical Details

Return Value: String, the form element type of a submit button.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support