|
|
Q1105 How do I count the number of characters entered within a textarea?
irt.org | Knowledge Base | JavaScript | Form 11 | Q1105 [ previous next ] Q1105 How do I count the number of characters entered within a textarea?If you mean "How do I stop the user from entering more than x number of chars in a textarea" The answer is "It is not easy" Internet Explorer 4 and Netscape Navigator 4 can capture keystrokes but have problems if the user presses backspace or so... I would try this - the onKeyUp counts the strokes in v4 and the onChange does the dirty deed on v3:
Feedback on 'Q1105 How do I count the number of characters entered within a textarea?' |
-- div -->
|