Jess,
Please put your code into the Iframe instead of textarea.
<iframe onKeyDown="checkIt"></iframe>
<script language="JavaScript">
function checkIt()
{
var stripped = obj_Editor1.editdoc.body.innerText;
var diff = stripped.length - maxLength;
if (diff > 0) {
alert('The maximum length for this statement is ' + maxLength + ' characters (roughly 5 pages). Your entry exceeds that length by ' + diff + '.');
this.focus();
}
}
</script>
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx