Click to See Complete Forum and Search --> : Close a window redirection.


iceafreak99
05-01-2003, 06:32 PM
First I have a script that opens two windows at once.

<script>
function doit(){
var w = screen.width - 7;
var h = screen.height/2;
var timer=window.open("timer.php", "timer","width="+w+",height=75");
timer.moveTo(0,0);
var spend=window.open("forkover.php","spend","status,left=0,width="+w+",height="+screen.height*.73);
spend.moveTo(0,120);
}
</script>

Ok if someone closes the window timer, how do I have the spend window redirect to a new page?

iceafreak99
05-01-2003, 09:44 PM
On the timer page, I put this in body..

<body bgcolor="#FFFFFF" onunload="var spend=window.open('cancel.php', 'spend', 'status,left=0,width=' + w + ',height=' + (screen.height*.73));">

I closed the timer window and the spend window below didnt do anything :(

iceafreak99
05-01-2003, 10:17 PM
Crap, I need it for all browsers :(