Re: multiline text box word count onBlur thing

by =?iso-8859-1?Q?St=E9phane?= Bergeron <stephberg(at)videotron.ca>

 Date:  Tue, 25 Jul 2000 17:43:51 -0400
 To:  hwg-techniques(at)hwg.org
 Cc:  RJP(at)clickdms.com
 In-Reply-To:  DMS
  todo: View Thread, Original
At 04:03 PM 25/07/00 +0100, you wrote:
>hello,
>  ok. im getting somewhere now. but having some problems. the javascript
>that ive managed to get together is...
>
><script>
><!--
>
>function maxwordcount(cur){
>var maxwords=3D100
>if (document.images){
>var temp=3Dcur.words.value.split(" ")

What is the "words" reserved word in the last statement above supposed to=20
be doing exactly?  It's listed as a reserved word in my JavaScript Bible=20
but the book doesn't say what it's used for.  Try var temp =3D=20
cur.value.split(" ");  instead and I believe it should work (I haven't=20
tested it so it's just a guess but that's what I'd try first).

HTH!

St=E9phane Bergeron

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA