Password maxLength Property
Password Object
Definition and Usage
The maxLength property sets or returns the maximum number of characters allowed in the password field.
Syntax
Set the maxLength property:
passwordObject.maxLength=
integer
Return the maxLength property:
passwordObject.maxLength
Browser support





All major browsers support the maxLength property
Example
Example
The following example displays the maximum number of characters allowed in the specified password field:
Try it »
Password Object