javascript InputTypePassword defaultValue

defaultValueNN 2 IE 3 DOM 1  

Read-only  

Indicates the default text for the password input element, as established by the value attribute.

 
Example
 
var pwObj = document.forms[0].myPassword;
if (pwObj.value != pwObj.defaultValue ) {
    // process user-entered password
}
 
Value

String value.

 
Default

None.


1073,Nickname,Homepage or email,Comments here,Add comment