Mega Code Archive
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