Refreshing a parent page from a child popup

E

evanburen

I use this code in a popup to refresh the parent browser. It works fine
as long as the user actually clicks on this link but does not work in
cases where the user closes the child popup through the Windows X
(close) button. Any way to accomodate this also? Thanks.

<img border="0" src="close-panel.jpg" width="113" height="21"
onclick="opener.window.location.reload();self.close();return false;">
 
E

evanburen

I guess popup is the wrong terminology because none of popup blockers
affect this code. I guess new window would be more appropriate.

function openPanelManager()
{
mywindow = window.open ("panelmanager.asp",
"mywindow","location=0,status=0,scrollbars=1,width=525,height=700");
mywindow.moveTo(0,0);
}

Your <a href="javascript:eek:penPanelManager();">Customized Profiles</a>
 
T

Thomas 'PointedEars' Lahn

I use this code in a popup to refresh the parent browser. It works fine
as long as the user actually clicks on this link but does not work in
cases where the user closes the child popup through the Windows X
(close) button. Any way to accomodate this also? Thanks.

Use the `onunload' event handler and be aware that it is
also called if the location of the popup document changes.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top