Easy Tutorial
❮ Jsref Regexp Onemore Prop Month Readonly ❯

Password value Attribute


Definition and Usage

The value attribute sets or returns the value of the value attribute of a password field.

For security reasons, some browsers may prevent JavaScript code from reading the value attribute.

Syntax

Set the value attribute:

Return the value attribute:


Browser Support

All major browsers support the value attribute.


Example

The following example retrieves the default value of the password field:


❮ Jsref Regexp Onemore Prop Month Readonly ❯