Input Reset type Attribute

Definition and Usage

type The property returns what type of form element the reset button is.

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

Example

Find out which type of form element the reset button belongs to:

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

Try It Yourself

Syntax

resetObject.type

Technical Details

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

Browser Support

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