Password.value (Property)

The user-entered value for the password text cell.


DOM level - 1
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Opera - 3.0
Property/method value type:String primitive
JavaScript syntax:-myPassword.value

This is the string value that is sent back to the web server when the form is submitted. It is difficult to store script-driven values in this property or to define default values in the HTML document source without revealing the password value to the user. More experienced users will be able to work out any default password values if you hide them.

See also:Input.value