July 1998
Intermediate to advanced
1456 pages
65h 5m
English
maxLength — NN n/a IE 4 DOM n/a
Read/Write
The maximum number of characters that may be typed into a text
INPUT element. In practice, browsers beep or
otherwise alert users when a typed character would exceed the
maxLength value. There is no innate correlation
between the maxLength and size
properties. If the maxLength allows for more
characters than fit within the specified width of the element, the
browser provides horizontal scrolling (albeit awkward for many users)
to allow entry and editing of the field.
document.entryForm.myText.maxLength = 35
Positive integer value.
Unlimited.
Read now
Unlock full access