Input Email type Property
Example
Return which type of form element the email field is:
var x = document.getElementById("myEmail").type;
Try it Yourself »
Description
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