I was wondering if it's possible to use a javascript in a form textarea that will popup an alert box when a person reaches a designated number of words.
Here for example is a js that launches an alert if the person exceeds 27 characters:
It would be very useful to have something similar that counted the words, and when the maximum is reached, the alert displays. I've seen a number of js "word counting" scripts, but none that will use the alert the way I'm describing. Is that possible? Thanks...
Here for example is a js that launches an alert if the person exceeds 27 characters:
Code:
<INPUT TYPE="text" NAME="title" size="40" onKeyUp="if (this.value.length>27) { alert('Please limit your title to only 27 characters including blank spaces'); this.value=this.value.substring(0,27) }">
Comment