Easy Tutorial
❮ Prop Datetime Form Jsref Getmonth ❯

HTML DOM Input Email Object


Input Email Object

The Input Email object represents an HTML <input> element with type="email".

Note: Internet Explorer 9 (and earlier versions) or Safari do not support the HTML <input> element with type="email".

Accessing the Input Email Object

You can access an <input> element with type="email" using the getElementById() function:

Tip: You can also access the Input Email object through the elements collection of the form.

Creating the Input Email Object

You can create an <input> element with type="email" using the document.createElement() method:

Input Email Object Properties

Property Description
autocomplete Sets or returns the autocomplete attribute value of the email field
autofocus Sets or returns whether the email field should automatically get focus when the page loads
defaultValue Sets or returns the default value of the email field
disabled Sets or returns whether the email field is enabled or disabled
form Returns a reference to the form that contains the email field
list Returns a reference to the datalist that contains the email field
maxLength Sets or returns the maxlength attribute value of the email field
multiple Sets or returns whether the email field can accept multiple email addresses
name Sets or returns the name attribute value of the email field
pattern Sets or returns the pattern attribute value of the email field
placeholder Sets or returns the placeholder attribute value of the email field
readOnly Sets or returns whether the email field is read-only
required Sets or returns whether the email field is required in the form
step Sets or returns the step attribute value of the email field
type Returns the type of the form element for the email field
value Sets or returns the value attribute value of the email field

Standard Properties and Events

The Input Email object also supports standard properties and events.


Related Articles

HTML Tutorial: HTML Forms

HTML Reference: HTML <input> Tag

HTML Reference: HTML <input> type Attribute

❮ Prop Datetime Form Jsref Getmonth ❯