Re: Form controls outside of form blocks

> I am puzzled by the use of form controls outside of form blocks? Is it

I think this restriction was relaxed to allow for scripting applications.
Unfortunately one, then popular browser, insisted on the presence of FORM
elements, resulting in such elements with missing mandatory parameters.
(Caution:  form controls used only for scripting cause accessibility problems
and require alternative access to the same functions.)

> The reason I ask, is that I am a newbie in javascript, and according to
> object models I have seen, form control objects are only accessible under a
> Form object. From that model, I concluded that the specification set in

They are accessibly by ID or name using the W3C object models.  I don't
believe the actual forms collection exists in that model.

> concrete a requirement for form controls to be within form blocks, as I
> assumed that javascript wouldn't place such a restriction on accessing any

You meant the document object model, not a specific scripting language.
"Javascript" is often misused to mean the DOM and browser object models.

Received on Friday, 17 January 2003 02:16:57 UTC