HTML DOM Input Email type property
Examples
Returns the email field of the form element type:
var x = document.getElementById("myEmail").type;
x The output is: email
try it"
Definition and Usage
type property returns the type of email Form Type field.
In the input type = "email", the property usually returns "email".
Browser Support
All major browsers support the type attribute.
Note: Internet Explorer 9 (and earlier versions of IE), or Safari browser does not support type = "email" in the HTML <input> elements.
grammar
emailObject .type
technical details
return value: | String representing the type of the field form element email |
---|
Input Email Object