Labels:

How to create a Html Character Calculator

Some time you will require to calculate how many characters are in your post or to add a character calculator to your blog or web site. So to fulfill that requirement I have write a html character calculator as follows.

Copy and past below cods in to your html section of post
<form method="POST"><table border="0" cellspacing="0" cellpadding="0"><tr><td width="100%"><textarea rows="12" name="charcount" cols="60" wrap="virtual"></textarea></td></tr><tr><td width="100%"><div align="right"><p><input type="button" value="Calculate Characters"onClick="countit(this)"> <input type="text" name="displaycount" size="20"></p><div align="center"><center><p>This free script provided by<a href="http://www.Freedomforbloggingtricks.blogspot.com">Freedom For Blogging Tricks</a></p></center></div></div></td></tr></table>
</form>
<script language="JavaScript">
function countit(what){
formcontent=what.form.charcount.value
what.form.displaycount.value=formcontent.length
}
</script>

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
 
Amazing Tricks For Blogger © 2012 | Designed by Canvas Art, in collaboration with Business Listings , Radio stations and Corporate Office Headquarters