Connecting Tech Pros Worldwide Forums | Help | Site Map

Refreshing a parent page from a child popup

evanburen@gmail.com
Guest
 
Posts: n/a
#1: Feb 10 '06
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.clos e();return false;">


Torbjørn Pettersen
Guest
 
Posts: n/a
#2: Feb 10 '06

re: Refreshing a parent page from a child popup


evanburen@gmail.com wrote:[color=blue]
> 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.clos e();return false;">[/color]

Can't help you, but I am curious as to why you would do this? More
and more people now use popup killers, and most serious browsers
even has it as a built in option. And then there is the problem (for you)
that most people find popups annoying.

I even use a combination several popup killers to protect me from them.

--
Torbjørn Pettersen


evanburen@gmail.com
Guest
 
Posts: n/a
#3: Feb 10 '06

re: Refreshing a parent page from a child popup


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:openPanelManager();">Customized Profiles</a>

Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
#4: Feb 10 '06

re: Refreshing a parent page from a child popup


evanburen@gmail.com wrote:
[color=blue]
> 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.[/color]

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


PointedEars
Closed Thread