lhutton
asked on
Load New Page In Parent / Close Popup Window
I've added the following script to a popup window that's opened when a link in it's parent is clicked:
function OpenInMain(mainurl) {
window.opener.location=mai nurl;
return;
}
with the following link:
<A HREF="javascript:OpenInMai n('http://www.newsite.com/')" onClick="window.close();"> New Site</A>
This loads a new page in the parent window, but it won't close the popup window. How can I do that at the same time?
function OpenInMain(mainurl) {
window.opener.location=mai
return;
}
with the following link:
<A HREF="javascript:OpenInMai
This loads a new page in the parent window, but it won't close the popup window. How can I do that at the same time?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Glad to help. :o)
Ant
Ant
ASKER
Cheers :)