Latest web development tutorials

HTML DOM Input Email value property

Input Email Object Reference Input Email Object

Examples

Modify email e-mail address field:

. Document.getElementById ( "myEmail") value = "[email protected]";

try it"

Definition and Usage

value value value attribute is used to set or return email field.

value attribute describes the default values.

value may be a simple address, or an email address list.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support attribute value.

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


grammar

Returns the value property:

emailObject .value

Set the value property:

emailObject .value = text

Property Value

value description
text Specify an email address, or e-mail address list

technical details

return value: String in a comma-separated list of e-mail.


More examples

Examples

Get email e-mail address field:

var x = document.getElementById ( "myEmail") value.;
x The output is:
try it"


Related Pages

HTML reference documentation: HTML <the INPUT> value The property


Input Email Object Reference Input Email Object