Javascript Reference
Categories: InputTypePassword

javascript InputTypePassword value

@March 15, 2008, 1:22 a.m.
valueFirefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  

Read/Write  

Indicates the current value associated with the form control that is submitted with the name/value pair for the element. All values are strings. Browsers return the actual characters typed by the user (except in Navigator 2), so you can retrieve an entered password for further processing before submission (or perhaps for storage in the cookie).

 
Example
 
document.forms[0].myPassword.value = "franken";
 
Value

String.

 
Default

None.


Powered by Linode.