This java script function helps you to count words entered in text box / textarea. Type the words in textarea and when you enter space it will be counted as word, the wordcount is displayed in the textbox.
Features
The javascript function will count the word entered into the text box or textarea.
Just copy the code into your page and use it.
Preview
Type words into textarea / textbox
Downloads
<!--Script by hscripts.com--> <!-- more scripts @ https://www.hscripts.com --> <textarea name="myMessage" onkeyup="wordcount(this.value)"></textarea> <script type=""text/javascript""> var cnt; function wordcount(count) { var words = count.split(/\s/); cnt = words.length; var ele = document.getElementById('w_count'); ele.value = cnt; } document.write("<input type=text id=w_count size=4 readonly>"); </script> <!-- Script by hscripts.com -->
For customization of this script or any script development, mail to support@hscripts.com
Usage
Te the words in textarea and when you enter space it will be counted as word, the wordcount is displayed in the textbox. Just copy the code and use it for free.