Character Counter Script

More tags

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.
Author: SimplytheBest Inc Price: Free GPLv2 Type: Javascript

EXAMPLES

Using an input box

 characters left

Using a textarea

 characters left

 

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-CCtrl-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.

Click in textarea to select code then copy and paste Ctrl-CCtrl-V

STEP 3b

Use this example to form a textarea.

Click in textarea to select code then copy and paste Ctrl-CCtrl-V