Finding Previous Floatboxes

Page: 1

Author Post

I got 3 levels of floatboxes. Each created by clicking on a link placed on each pages inside the floatboxes. From the page inside third floatbox, i want to call a javascript function wriiten inside the page2 placed in floatbox 2. How can i call that javascript function, or get the reference to the document placed inside the floatbox 2?.

Thanks in advance.

Registered: Aug 2008
Posts: 3382
Greetings from Koh Chang.

Please see this post in the forum:
And similar info in the instructions at

There's enough in there to get you to the second floatbox's document element. If you have the document element in a var named doc, you can get the iframe window object with:
win = doc.defaultView || doc.parentWindow || doc.contentWindow;
That gets the window in everything except Safari pre 3.0.
See if you need Safari 2.x window object support, and give me a shout if you need more info or clarification.


Page: 1