if only there was some sort of maxlength="30" attribute you could put in <input> element to inform the user agent that there is a maximum length limit, rather than testing after they exit the text box.
alas.

if only there was some sort of maxlength="30" attribute you could put in <input> element to inform the user agent that there is a maximum length limit, rather than testing after they exit the text box.
alas.