Character Counter
With this script you limit the number of characters allowed in an input box or textarea. The script counts and displays the number of characters with each keystroke.
EXAMPLES
Using an input box
STEP 1
Insert the JavaScript function at the end of your page before the </BODY> tag.
Click in textarea to select code then copy and paste Ctrl-C Ctrl-V
STEP 2
Make sure your FORM statement is named the same as the name value in the onClick tags.
STEP 3a
Use this example to form an input box.
STEP 3b
Use this example to form a textarea.
Click in textarea to select code then copy and paste Ctrl-C Ctrl-V
<textarea name="description" rows="8" class="boxdesc" maxLength="500" onKeyDown="textCounter(document.insform.description,document.insform.dlength,500)" onKeyUp="textCounter(document.insform.description,document.insform.dlength,500)"></textarea>
characters left