Latest web development tutorials
 

Input Email type Property

Input Email Object Reference Input Email Object

Example

Return which type of form element the email field is:

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

The result of x will be:

email
Try it Yourself »

Definition and Usage

The type property returns which type of form element the email field is.

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


Browser Support

Property
type Yes 10.0 Yes Yes Yes

Syntax

emailObject.type

Technical Details

Return Value: A String, representing the type of form element the email field is

< Input Email Object