Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Javascript within DIV tags in Netscape

0 views
Skip to first unread message

Rob Naidich

unread,
Sep 30, 2000, 3:00:00 AM9/30/00
to

I have a couple tables postioned an layered using <DIV> and <SPAN> tags and
I have finally gotten the formatting correct in both IE and Netscape but
none of my Javascipt events -- like mouseover images and onclick -- will
work in Netscape. Does anyone know how to get around this?

Rob

Matt Lavallee

unread,
Nov 11, 2000, 3:00:00 AM11/11/00
to

Presumably you mean Netscape 4.x- the problem is that NN4 interprets each
DIV as its own document, thus, in order to execute script from the "main"
document, you have to call the sub-document specifically:

document[divname].whatever

Likewise, if you're already in a DIV and executing script, you have to go
"above" to the main document:

window.document[divname].etc.

-Matt


0 new messages