HackingUniversity - Hacks . Tricks . How-To's

24 September 2013

Simple Words and Character Counting Tool for Websites

character count toolIf your are concerned about accurate characters to be be used on some posts or you just wanted to know if how many characters or words are written in some posts then this little tool might provide you with some help. This tool simply combines the power of Character Counting and Words Counting into one and simply displays in simple text, so the work you need to perform is to just copy some text and then add that text into this tool and press on Count.

Now it involves a little javascript action that simply allows counts the characters and words using its own computing skills and displays them in simple numeric language.

# of Characters:
# of Words:

So now just enter your text in the above tool where it is mentioned Enter your text and then press that little Count button that will simply count the words easily.

Embed this tool on your website :)

Well now many people would love to get and embed this tool right on their website, so it will not disappoint anyone so grab the below code and add it to your post or website using HTML field, hope it works for you, so do like and share this with your friends.

<style>textarea{border:1px solid #ccc;font:normal 12px/15px Courier New;height:200px;padding:5px;resize:none;width:100%}.button{font-family:verdana;font-size:12pt}.buttonholder{text-align:center}.infoholder{padding-right:15px;text-align:right}</style><script type="text/javascript">function countit(){e=document.wordcount.charcount.value;document.wordcount.displaylettercount.value=e.length;var e=document.wordcount.charcount.value;e=e.split(" ");document.wordcount.displaywordcount.value=e.length}</script><form name="wordcount"><table cellpadding="0" cellspacing="8" style="width: 100%;"><tbody><tr><td colspan="2"><textarea placeholder='Enter your text to be counted here :)' class="textarea" name="charcount"></textarea></td></tr><tr><td class="buttonholder" colspan="2"><input class="button" onclick="countit()" padding: 2px 10px;" type="button" value="Count"></td></tr><tr><td class="infoholder" style="width: 50%;"># of Characters:</td><td style="width: 50%;"><input class="textarea" name="displaylettercount" size="8" style="border: 1px solid #d8deeb;padding: 3px 0;text-align: center;"></td></tr><tr><td class="infoholder" style="width: 50%;"># of Words:</td><td style="width: 50%;"><input class="textarea" name="displaywordcount" size="8" style="border: 1px solid #d8deeb;padding: 3px 0;text-align: center;" type="text"></td></tr><tr><td class="buttonholder" colspan="2"><input class="button" name="Reset" type="reset" value="Clear"></td></tr></tbody></table></form>