Yet another question from DD-Fresh..

liunx

Guest
This will be real quick..<br />
<br />
I know a lot of ppl hate popups.. but i'm trying one.. I got the popup to work and all it goin well. But is there a way when you click on the link [enter] and the popup page loads how to make it close the other window at the same time?<br />
<br />
Thanks<br />
DD<!--content-->I'm thinking something like<br />
onClick="window.parent.close()"<!--content-->Not going to happen, without a security warning. You can only close a window that you open with scripting. If you try to clos the main window the user gets a security warning and has to agree to closing the window.<br />
<br />
In any case you can trigger the close this way:<br />
<br />
<body onLoad="window.referrer.close()"><br />
<br />
Or you can have the main page do it's own close in the function that does the open with: self.close();<br />
<br />
But when I go to a site and they try to close my primary window, in consider it an untrustworthy site and leave, never to return.<!--content-->Hmmm... I think instead of window.referrer.close(), you may want to use window.opener.close() to be more correct.<!--content-->
 
Back
Top