WORD COUNTER
number of words
enter text, please
(less than 5 words)
Word Counter
Word counter is a great utility if your website uses forms and textfields. Not only does it count the words entered by your vistors. It also prevents your visitors from writing too long text. If the text is too long it will be cut by the script. Very easy configuration of the maximum textlength. In this sample the maximum textlength is restricetd to 5 words. Crossbrowser. Try to write a longer text in order to see the effect.

Configuration:

Step 1 Paste the following code into your webpage:


Step 2: Open your webpage, go to the top of script and configure the maximum number of words that may be entered into the textfield (red number below):

// What's the maximum length of your textfield (number of words)
var maximalwords=5