[thelist] Textarea Javascript

Cymbala, Greg Greg.Cymbala at Den.Galileo.com
Wed Apr 24 13:35:01 CDT 2002


You should probably not name a variable with the same name as an HTML
element.  Also, in your second example:

      var textarea = document.does.textarea.value

Is the form named "does"?  What's the <form> tag's name attribute?

Greg

-----Original Message-----
From: Feingold Josh S [mailto:Josh.S.Feingold at irs.gov]
Sent: Wednesday, April 24, 2002 12:11 PM
To: 'thelist at lists.evolt.org'
Subject: [thelist] Textarea Javascript


I noticed that this:

      textarea = document.form.textarea.value

does not work, while this:

      var textarea = document.does.textarea.value

does. (textarea is a named textarea box in the form)

Does anyone know why?

Thanks,
Josh


The information in this electronic mail message is sender's business
Confidential and may be legally privileged.  It is intended solely for the
addressee(s).  Access to this Internet electronic mail message by anyone
else is unauthorized.  If you are not the intended recipient, any
disclosure, copying, distribution or any action taken or omitted to be taken
in reliance on it is prohibited and may be unlawful.
The sender believes that this E-mail and any attachments were free of any
virus, worm, Trojan horse, and/or malicious code when sent. This message and
its attachments could have been infected during  transmission. By reading
the message and opening any attachments, the recipient accepts full
responsibility for taking protective and remedial action about viruses and
other defects. Galileo International is not liable for any loss or damage
arising in any way from this message or its attachments.





More information about the thelist mailing list