Hi,
this is nice way to do it ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<textarea onkeypress="return maxLengthCheck(this);"
maxlength="10"></textarea>
<script>
function maxLengthCheck(oTextArea)
{
if (typeof oTextArea.maxlength != "undefined")
{
if (oTextArea.value.length == oTextArea.maxlength)
{
alert('Data limit reached.');
return false;
}
}
return true;
}
</script>
</body>
</html>
Elliot
"Knott, Brian" <[EMAIL PROTECTED]> wrote in message news:22396@cfaussie...
Fellow CFer's,
I have seem this before but has someone got some JavaScript code to
check the number of characters in a text area.
Brian Knott
Senior Database Developer
QANTM Studio
Phone (07) 3017 4331
Mobile 0407 572127
Email [EMAIL PROTECTED]
Website <http://www.qantm.com.au/>
This email is sent commercial-in-confidence. The contents of this email and
attachments are intended for the addressee only and may be subject to the
laws of copyright, confidential information and privacy. You may only
forward it on or otherwise copy or use it with the consent of the sender.
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/