Use the onKeyPress() event of the TextArea to track the # of characters
typed by the user in a javascript function. You'll also probably want to
reset the counter somehow.
John Owen
Federal TransTel
Senior Developer
-----Original Message-----
From: Anne Do [mailto:anhdo@a...]
Sent: Friday, October 12, 2001 4:08 PM
To: HTML Code Clinic
Subject: [html_code_clinic] Help with limiting text inside an <text
area> box?
I have a text area box that I want to limit to 255 characters. How do I
do that? I know with an <input ..> field I would use maxlength=255, but
how do I do that for a text area box in a form that has this code?
<TEXTAREA cols="40" rows="12" name="Description"> </TEXTAREA>
I want users to be able to see what they are typing.
Thank you.