Could someone please help me on the following case.
I have a page that opens a popup/child-window (window.open(...)). This
childwindow redirects the mainwindow and closes itself if everything is
BUT, the problem is when a user closes the childwindow using the x
before redirect has activatet from the childwindow. Then the mainwindow
is stuck on the waiting page.
However, I get the mainwindow to check if child is closed using
onfocus, and then redirect to a error page, but this even fires if the
childwindow redirects ok and closes. (Because of the onfocus event).
So the problem is that it will always redirect to the same page
(errorpage) and not take any notice of the redirect from the
So is there a way for me to check if the page is allready being
redirected or that the childwindow just closed with no redirect?
> However, I get the mainwindow to check if child is closed using
Use standard property window.closed to test window state instead of
> and then redirect to a error page, but this even fires if the
> childwindow redirects ok and closes.
Redirect main window before closing child window and then close child
onclick="opener.location='ProperPage.htm';window.c lose();">Redirect to
w = window.open("childPopup.htm");
document.location = "ErrorPage.htm";
<span onclick="OpenChild()">open child</span>
|All times are GMT. The time now is 11:39 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.