Javascript Reference
Categories: InputTypePassword

javascript InputTypePassword textLength

@March 15, 2008, 1:22 a.m.
textLengthFirefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM n/a  

Read-only  

The textLength convenience property (introduced with Netscape 6) returns the length of text entered into the text field. The value is same as the length of the value property.

 
Example
 
var elem = document.forms[0].myPassword;
elem.selectionEnd = elem.textLength;
elem.selectionStart = elem.textLength;
 
Value

Positive integer.

 
Default

None.


Powered by Linode.