Input Password placeholder Attribute
Definition and Usage
placeholder
Set or return the value of the placeholder attribute of the password field.
The HTML placeholder attribute specifies a brief prompt describing the expected value of the password field (for example, a sample value or a brief description of the expected format).
A brief prompt will be displayed in the password field before the user enters a value.
See also:
HTML Reference Manual:HTML <input> placeholder ਵਿਸ਼ੇਸ਼ਤਾ
Example
Example 1
Change the placeholder text of the password field:
document.getElementById("myPassword").placeholder = "Enter your password";
Example 2
Get the placeholder text of the password field:
var x = document.getElementById("myPassword").placeholder;
Grammar
return placeholder property:
passwordObject.placeholder
set placeholder property:
passwordObject.placeholder = text
ਵਿਸ਼ੇਸ਼ਤਾ ਮੁੱਲ
ਮੁੱਲ | ਵਿਵਰਣ |
---|---|
text | ਵਿਵਰਣ ਨੂੰ ਪਾਸਵਰਡ ਫੀਲਡ ਦੀ ਆਸ਼ਾ ਵਾਲੀ ਮੁੱਲ ਦੇ ਸੰਕੇਤ ਕਰਨਾ (ਸ਼ਬਦ ਜਾਂ ਫ਼ਰਾਜ਼ੇ) |
ਤਕਨੀਕੀ ਵੇਰਵੇ
ਵਾਪਸ ਮੁੱਲ: | ਪਾਠ ਵਿਸ਼ੇਸ਼ਤਾ, ਪਾਸਵਰਡ ਫੀਲਡ ਨੂੰ ਮੰਨਦੀ ਹੈ ਕਿ ਆਸ਼ਾ ਵਾਲੀ ਕਰਦੀ ਹੈ |
---|
ਬਰਾਉਜ਼ਰ ਸਮਰਥਨ
ਚਰਾਮੇ | ਐਜ਼ਡ | ਫਾਇਰਫਾਕਸ | ਸੈਫਾਰੀ | ਓਪਰਾ |
---|---|---|---|---|
ਚਰਾਮੇ | ਐਜ਼ਡ | ਫਾਇਰਫਾਕਸ | ਸੈਫਾਰੀ | ਓਪਰਾ |
ਸਮਰਥਨ | 10.0 | ਸਮਰਥਨ | ਸਮਰਥਨ | ਸਮਰਥਨ |