Input Email type Attribute

Definition and Usage

type The attribute returns what type of form element the email field is.

For input type="email", this attribute will always return "email".

Example

What type of form element is the return email field:

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

Try It Yourself

Syntax

emailObject.type

Technical Details

Return Value: A string value that represents the form element type for the email field.

Browser Support

The numbers in the table indicate the first browser version that fully supports this attribute.

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