Forum Moderators: open

Message Too Old, No Replies

Netscape 8.0 and Window Opener

         

Kolyana19

8:58 pm on Sep 7, 2005 (gmt 0)

10+ Year Member



I have a small chunk of code in a popup window that references the opener before performing operations on it (a simple safety check, just to make sure it's actually there!). This works great in Opera, IE and FireFox, but in Netscape ... if the user chooses the option to open popups *NOT* in a new tab, but a window, the association between opener and 'child' appears to be lost.

If the user selects the default behavior 'open popups in a new tab' then the association with the opener is maintained, but unchecking this option severs the connection and if(window.opener) is now false.

Is there anyway around this?

Bernard Marx

9:37 pm on Sep 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If this is some kind of bug, and can't be resolved (from the perspective of the new window), you could try the old-time technique of reminding the new window..

var newWin = open( ... );
newWin.opener = self;

(Just a stab in tha dark, mind)

Kolyana19

9:57 pm on Sep 7, 2005 (gmt 0)

10+ Year Member



Bernard, what a stroke a genius ... that did the trick!