'maxLength' Syntax and Note : maxLength « Javascript Properties « JavaScript Reference

'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

    

      
      








Related examples in the same category

1.'maxLength' Example
2.'maxLength' is applied to