Input Email type property
Example
Return the form element type of the email field:
var x = document.getElementById("myEmail").type;
x
The output is:
Try it »
Definition and Usage
The type property returns the form type of the email field.
In input type="email", this property usually returns "email".
Browser support





All major browsers support the type attribute.
Note: Internet Explorer 9 (and earlier IE versions) or Safari browser does not support the HTML element with type="email". .
Syntax
emailObject
.type
Technical Details
| Return Value: | String, representing the form element type of the email field |
|---|
Input Email Object