[Javascript] referring to a form in a div

Peter Brunone peter at brunone.com
Tue May 1 15:38:58 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.

----- Original Message -----
From: "Chris Basken" <chriz at basken.com>
To: <javascript at LaTech.edu>
Sent: Tuesday, May 01, 2001 3:05 PM
Subject: RE: [Javascript] referring to a form in a div


> in NS4, you have to refer to the div first:
>
> document.layers[0].document.forms[0]
>
> not sure what you're doing for IE, but it's simply document.forms[0]
>
>
>
> >
> > Here's another one:
> >
> >     How do you refer to the form inside a DIV tag (particularly one
that's
> > absolutely positioned, although that shouldn't make a
> > difference)?  I can't
> > seem to get it right for NN or IE.
> >
> > Thanks,
> >
> > Peter
> >
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > http://www.LaTech.edu/mailman/listinfo/javascript
> >
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> http://www.LaTech.edu/mailman/listinfo/javascript
>





More information about the Javascript mailing list