Input Email placeholder Attribute
Definition and Usage
placeholder
Set or return the value of the placeholder attribute of the email field.
The HTML placeholder attribute specifies a brief hint that describes the expected value of the email field (for example, a sample value or a brief description of the expected format).
A short hint will be displayed in the text field before the user enters a value.
See also:
HTML Reference Manual:HTML <input> placeholder ਵਿਸ਼ੇਸ਼ਤਾ
Example
Example 1
Change the placeholder text of the email field:
document.getElementById("myEmail").placeholder = "Your Email address";
Example 2
Get the placeholder text of the email field:
var x = document.getElementById("myEmail").placeholder;
Syntax
Return placeholder attribute:
emailObject.placeholder
set placeholder attribute:
emailObject.placeholder = text
ਵਿਸ਼ੇਸ਼ਤਾ ਮੁੱਲ
ਮੁੱਲ | ਵਰਣਨ |
---|---|
text | ਇਮੇਲ ਫੀਲਡ ਦੀ ਅਕਾਂਖਿਆਵਾਂ ਦੀ ਛੋਟੀ ਸੁਝਾਅ (ਸ਼ਬਦ ਜਾਂ ਫ਼ਰਾਜ਼) ਨੂੰ ਵਿਸ਼ੇਸ਼ਤਾ ਵਿੱਚ ਨਿਰਧਾਰਿਤ ਕਰਦਾ ਹੈ。 |
ਤਕਨੀਕੀ ਵੇਰਵੇ
ਵਾਪਸੀ ਮੁੱਲ: | ਸਟਰਿੰਗ ਮੁੱਲ, ਜੋ ਇਮੇਲ ਫੀਲਡ ਦੀ ਅਕਾਂਖਿਆਵਾਂ ਦੀ ਛੋਟੀ ਸੁਝਾਅ ਨੂੰ ਪ੍ਰਦਰਸ਼ਿਤ ਕਰਦਾ ਹੈ。 |
---|
ਬਰਾਉਜ਼ਰ ਸਮਰਥਨ
ਸਾਰੇ ਨੰਬਰ ਪਹਿਲੀ ਵਾਰ ਇਸ ਵਿਸ਼ੇਸ਼ਤਾ ਨੂੰ ਸਮਰਥਨ ਕਰਨ ਵਾਲੇ ਬਰਾਉਜ਼ਰ ਦੀ ਸੰਸਕਰਣ ਨੰਬਰ ਨੂੰ ਦਰਸਾਉਂਦੇ ਹਨ。
ਚਰਾਮਸ | ਐਜ਼ | ਫਾਇਰਫਾਕਸ | ਸੈਫਾਰੀ | ਓਪਰਾ |
---|---|---|---|---|
ਚਰਾਮਸ | ਐਜ਼ | ਫਾਇਰਫਾਕਸ | ਸੈਫਾਰੀ | ਓਪਰਾ |
ਸਮਰਥਨ | 10.0 | ਸਮਰਥਨ | ਸਮਰਥਨ | ਸਮਰਥਨ |