javascript InputTypePassword textLength

textLengthNN 6 IE n/a 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.


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