[Javascript] referring to a form in a div
Chris Basken
chriz at basken.com
Wed May 2 08:51:01 CDT 2001
> Okay, so the IE one was a no-brainer ;-)
>
> What if you're not using layers? Last time I checked (just
> now), <DIV>
> tags weren't part of the layers collection.
in NS4, a <layer> and a <div> are both the same thing if you've given the
<div> absolute positioning via CSS (this is also true for <span> and
possibly others). so if the form's inside a non-absolute DIV, you just call
it as part of the document object (document.forms). this is also true for
forms outside any layers.
More information about the Javascript
mailing list