...

View Full Version : Detect popup window close, redirect to...



jasonv
07-29-2011, 09:37 PM
Hello,

I am trying to work on the following:
You open the cart page and click the pay now button, that button opens a new window. I am trying to write (and I bet this is easy but I can't seem to get it) a script so that when it detects that window closing to automatically forward the main page to an account page.

Is it something like:

<script type="text/javascript">
header(Location:"http://www.mysite.com");
if (window.opener.progressWindow)

{
window.opener.progressWindow.close()
}
window.close();
}
</script>

I am no programmer :o



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum