Input Email value attribute

Definition and Usage

value Set or return the value of the value property of the email field.

The HTML value attribute specifies the default value or the value entered by the user (or the value set by the script).

The value can be a single email address or a list of email addresses.

See also:

HTML Reference Manual:HTML <input> value ਪ੍ਰਤੀਯੋਗਿਤਾ

Instance

Example 1

Change the email address in the email field:

document.getElementById("myEmail").value = "steve@codew3c.com";

try it yourself

Example 2

Get the email address from the email field:

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

try it yourself

Example 3

Example to show the difference between defaultValue and value properties:

var x = document.getElementById("myEmail");
var defaultVal = x.defaultValue;
var currentVal = x.value;

try it yourself

syntax

return value ਪ੍ਰੋਪਰਟੀ:

emailObject.value

set value ਪ੍ਰੋਪਰਟੀ:

emailObject.value = text

ਪ੍ਰਤੀਯੋਗਿਤਾ ਮੁੱਲ

ਮੁੱਲ ਵਰਣਨ
text ਇੱਕ ਸਿੱਧੀ ਈਮੇਲ ਅਡਰੈੱਸ ਜਾਂ ਈਮੇਲ ਅਡਰੈੱਸ ਸੂਚੀ ਨੂੰ ਨਿਰਧਾਰਿਤ ਕਰਦਾ ਹੈ。

ਤਕਨੀਕੀ ਵੇਰਵੇ

ਮੁੱਲ ਵਾਪਸੀਆਂ: ਸਟਰਿੰਗ ਮੁੱਲ ਜਾਂ ਕਮਾ ਵੱਲੋਂ ਵੰਡੇ ਸਟਰਿੰਗ ਮੁੱਲ ਸੂਚੀ, ਜੋ ਮਾਨਤਾ ਪ੍ਰਾਪਤ ਈਮੇਲ ਅਡਰੈੱਸ ਹੈ。

ਬਰਾਉਜ਼ਰ ਸਮਰਥਨ

ਸਾਰੇ ਨੰਬਰ ਵਿੱਚ ਪਹਿਲੀ ਵਾਰ ਇਸ ਸ਼ਰਤ ਦਾ ਪੂਰਾ ਸਮਰਥਨ ਕਰਨ ਵਾਲੇ ਬਰਾਉਜ਼ਰ ਦੀ ਸੰਸਕਰਣ ਨੰਬਰ ਦਿੱਤੀ ਗਈ ਹੈ。

ਚਰਮ ਐਜ਼ ਫਾਇਰਫਾਕਸ ਸੈਫਾਰੀ ਓਪੇਰਾ
ਚਰਮ ਐਜ਼ ਫਾਇਰਫਾਕਸ ਸੈਫਾਰੀ ਓਪੇਰਾ
ਸਮਰਥਨ 10.0 ਸਮਰਥਨ ਸਮਰਥਨ ਸਮਰਥਨ