Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Javascript, forms, opener.window help!


joshie76 - 1:47 pm on Sep 18, 2002 (gmt 0)


Hi Chesko

Welcome to WebmasterWorld,

I'm a little baffled as to exactly what's going wrong for you but I just scanned your code and the following lines seem to me to be unnecessary...

linkswin.focus();
linkswin.opener = window;
linkswin.opener.name = self.name;

Since the linkswin window is being opened by the same script the linkswin.opener object should automatically be configured to point to the window running the script and therefore shouldn't need assigning to...

I tried the code and it worked fine without those lines. As I say, I'm not entirely clear what's going wrong.

Let me know if I'm wandering down the wrong track.

Josh


Thread source:: http://www.webmasterworld.com/javascript/195.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com