Blue Ridge Software LLC
  Encryption
Services
  Webmaster
Services
  Programming   Software   About Us

Program Snippets

  Javascript - Count Characters (Add To Favorites)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title> Character Counter </title>
 </head>
 <body>
<form name="frm" method="POST">
<table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="100%">
	    <textarea rows="12" name="charcount" cols="60" wrap="virtual" onkeyup="countit(this)"></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></td>
    </tr>
  </table>
</form>
<script language="JavaScript">
function countit(what){
	formcontent=what.form.charcount.value
	what.form.displaycount.value=formcontent.length

}

if(document.frm.charcount)
{
	document.frm.charcount.focus();
}
</script>
 </body>
</html>
© 2013- Blue Ridge Software LLC