Latest web development tutorials

HTML DOM Input Email Object

Input Email Object

Input Email object is a new HTML5.

Input DatetimeLocal object representation using type = "email" in the HTML <input> elements.

Note: Internet Explorer 9 (and earlier versions of IE), or Safari browser does not support type = "email" in the HTML <input> elements.

Object Access Input Email

You can use getElementById () function to access using type = "email" <input> element attributes:

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

Tip: You can also form elements to access the Input Email a collection of objects.

Create Object Input Email

You can use document.createElement () method to create using the type = "email" attribute of the <input> element:

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

Input Email Object Properties

Attributes description
autocomplete Sets or returns the email field autocomplete attribute value
autofocus Sets or returns the email field is automatically get the focus when the page loads
defaultValue Sets or returns the default value of the email field
disabled Sets or returns the email field is available
form Returns a reference to the form of email field
list It returns a reference to the email field datalist
maxLength Sets or returns the email field maxlength attribute values
multiple Sets or returns whether the email field can enter multiple e-mail address
name Sets or returns the email field name attribute value
pattern Sets or returns email field pattern property value
placeholder Sets or returns email field placeholder attribute value
readOnly Sets or returns the email field is read-only
required Sets or returns the email field in the form if a required field
step Sets or returns the property value of the email field in step
type Returns the email field of the form element type
value Sets or returns the email field value attribute value

Standard properties and events

Input Email Object also supports standard attributes and events .


related articles

HTML Tutorial: HTML Forms

HTML Reference Manual: HTML <the INPUT> tag

HTML Reference Manual: HTML <the INPUT> of the type attribute