Hywel Jenkins said:
news.ops.worldnet.att.net>, (e-mail address removed)
says...
If you have <input>s you need <form>.
No. While Netscape 4 can't accept form controls outside of a form tag,
the HTML specification allows them, and it works in all modern browsers.
There's no reason to leave it out, is there?
Lots of reasons. A form element requires an action attribute. If you
don't have a reasonable action to add, then it is a good sign that what
you are doing isn't a form.
For the original question: Yes, it is possible. You can access any
element on the page. For form controls inside a form element, there is
an extra way to access them: the form through the "forms" collection
and the controls through the "elements" collection of the form.
If you have an input element with no form, you must access it directly,
so you should give it a unique identifier:
<input type="text" value="my text" id="myInputId">
You can the access the value as
document.getElementById("myInputId").value
/L