[Javascript] referring to a form in a div

Chris Basken chriz at basken.com
Tue May 1 15:05:15 CDT 2001


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
>





More information about the Javascript mailing list