Javascript Reference
Categories: InputTypePassword

javascript InputTypePassword size

@Aug. 17, 2009, 9:46 a.m.
size Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

 

Read/Write  

Roughly speaking, the width in characters that the input box should be sized to accommodate. In practice, the browser does not always accurately predict the proper width even when all characters are the same, as they are in the password object. See details in the size attribute discussion for the input element. There is no interaction between the size and maxLength properties for this object.

 
Example
 
document.forms[0].myPassword.size = 12;
 
Value

Integer.

 
Default

20


Powered by Linode.