Sandeep's Nook: JavaScript Page

Words Counter

Below is the Words Counter script that counts the words being typed into the textarea. As users type in the words into the textarea the number of words typed will automatically appear in the text box named Count. This script will be useful for those users who would like to limit the number of words allowed in their contact forms. The maximum words allowed can be set. In the example below the maximum allowed is 30 words. Users will not be able to type in more than the maximum words allowed.

Words Counter

Author: Sandeep Gangadharan
Home Page:

The script is given below:

This goes in the HEAD of the html file:

This goes in the BODY of the html file: