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:
Code:
<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