maxLength

Jump to: navigation, search

maxLength

This article is Not Ready.


Summary

The maxLength attribute sets an upper limit on the number of characters that can be entered in an input element.


Applies to html/elements/input

This attribute can be applied to inputs with the type text, search, url, email, telephone, and password.

Examples

The example text box has a max length of 12 characters.

HTML

<input maxLength="12">

View live example




See also

Related articles

HTML













  • maxLength
















































Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]