For a textbox (element input, type text), maxlength is part of the HTML Specification (
link), and is does not even require javascript turned on to properly work. As a
test I just tried to copy/paste into a text box with maxlength set, and it didn't paste past the maxlength. Even in a browser as old as Netscape 2.
Now, textareas. That's a different story. If you look at the
textarea spec, you'll notice there is no maxlength. If you want to limit characters in a textarea, you'll need to use javascript. Is this where you're having a problem?
[ September 05, 2005: Message edited by: Keith Sebastian ]