WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Input Email Object


Input Email Object

The Info Email Object is new in HTML5.

The Input Email object speaks to a HTML <input> component with type="email".

Note: <input> components with type="email" are definitely not upheld in Internet Explorer 9 (and prior adaptations), or Safari.

Access an Input Email Object

You can get to a <input> component with type="email" by utilizing getElementById():

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

Tip: You can likewise get to <input type="email"> via looking through the elements gathering of a form.

Create an Input Email Object

You can make a <input> component with type="email" by utilizing the document.createElement() method:

var x = document.createElement("INPUT");
x.setAttribute("type", "email");

Input Email Object Properties

Property Description
autocomplete Sets or returns the estimation of the autocomplete characteristic of an email field
autofocus Sets or returns whether an email field ought to naturally get center when the page loads
defaultValue Sets or returns the default estimation of an email field
disabled Sets or returns whether an email field is handicapped, or not
form Returns a reference to the structure that contains the email field
list Returns a reference to the datalist that contains the email field
maxLength Sets or returns the estimation of the maxlength trait of an email field
multiple Sets or returns whether a client is permitted to enter more than one email address in the email field
name Sets or returns the estimation of the name characteristic of an email field
pattern Sets or returns the estimation of the example quality of an email field
placeholder Sets or returns the estimation of the placeholder property of an email field
readOnly Sets or returns whether the email field is perused just, or not
required Sets or returns whether the email field must be rounded out before presenting a form
size Sets or returns the estimation of the size property of the email field
type Returns which sort of structure component the email field is
value Sets or returns the estimation of the esteem trait of an email field