maxlength attribute | maxLength property
Sets or retrieves the maximum number of characters that the user can enter in a text control.
The maximum length of the input.
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 17.4
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 184.108.40.206.8
The maxLength property limits the number of characters the user can enter. The property does not limit programmatic assignments to the value property. The property's value can be larger than the size of the text box, in which case the text box scrolls as the user types.
Build date: 11/16/2013