Character Counter

JavaScriptSource Staff Mar 28, 2005

General

Use this script to limit the number of characters allowed in an input box. It will display the number of characters left. Easy to modify.


Field Name
100 characters left.

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: characterCounter.js


CSS

Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


Leave a Response

(0 comments)