/me has this just a copied/pasted/credited® n' saved from the ol' wa forum...:O)))
just a goodluck® n' hoping it helps...:O)))
Description: A script that checks the number of characters in a form box, and if it exceeds the predetermined number,
cancels the form submission, and asks the surfer to reenter data.
In 50 chars or less, please type a short description of yourself:
Directions: Simply cut and paste the below code into the <body> section of your page. It contains a form with one textarea
box that is checked for max # of characters. You can change this # from the default 50 to another by changing "var maxlength"
below. You can add in more form elements into the form, as you would with any other form.
//change max length to determine below
alert("Please restrain your input to 50 or less characters!")
<form onsubmit="return checkchars(this)">
<strong>In 50 chars or less, please type a short description of yourself:</strong><br><textarea rows="5" cols="38" name="chars"></textarea>
<br><input type="submit" value="Submit!">
<p align="center"><font face="arial" size="-2">This free script provided by</font><br>
<font face="arial, helvetica" size="-2"><a href="http://wsabstract.com">Website