Justin Sane wrote:
I haven't been able to select a form using getElementById. I only
can select a form using the "name" property of the <form> tag.
Probably you mean the `name' attribute of the `form' element.
Markup elements, which consist of (a) tag(s) and sometimes
non-empty content, have attributes; objects have properties.
Is there another way to select a form, or is it even possible to
use getElementById to select a particular form?
1. name != ID. If you use names, use
document.getEle mentsByName("el ement_name")[zero_based_inde x]
2. Use the both standards compliant and downwards compatible
document.forms["form_name"]
reference or any shortcut of it (`this.form' suffices in
an event handler attribute value of a form control that
is decendant of a `form' element.)
3. This question was not new. Please read previous discussions before
posting.
4. Despite what the provider tells you,
me@privacy.net is not an
(existing) e-mail address and so using it in the From or Reply-To
header is a violation of Internet protocols as well as a disregard
of (Usenet) Netiquette. Stop using it and start maintaining your
inbox.
PointedEars