View Full Version : "Processing..." Popup Page

10-03-2003, 07:14 AM
I'm looking for a script that will execute a popup window onSubmit of a form on enter.php then the next window (refer.php), when fully loaded, will close this popup window.

My fav popup script is:

var flashwin=null;
function popup(url,target,w,h){
settings='width='+w+',height='+h+',top=200,left=200,scrollbars=no,location=no,directories=no,status= no,menubar=no,toolbar=no,resizable=yes';

On enter.php I have: <form onSubmit="popup('processing.htm','processing','220','120')">

What do I need in the <body onLoad=""> in refer.php to close this popup window?


crazy horse
10-03-2003, 10:05 AM
I'm not 100% sure about this but I think you can only remote close a pop up window from the page that spawned it. You do this using the variable you assigned the window to when you opened it - in this case it would be flashwin.close();

My advice would be to add a script to the pop up itself, telling it to close after a certain time:

onLoad="setTimeout('window.close()', 5000);"