Mega Code Archive

 
Categories / JavaScript Reference / Javascript Properties
 

MaxLength Syntax and Note

Note: Read and write property.  Sets the maximum number of characters that can fit into the text field.      Syntax:      document.getElementById("inputID").maxLength = value document.all.inputID.maxLength = value // IE only