Password Object
The value property sets or returns the value of the value attribute of a password field.
The value property contains the default value OR the value a user types in (or a value set by a script).
Set the value property:
Return the value property:
![]()
The value property is supported in all major browsers.
Display the value of the password field:
Password Object
Your message has been sent to W3Schools.