Page 1 of 1
Event on close window
Posted: Fri Oct 25, 2002 7:09 pm
by Zoram
I've heard that there is a way in ColdFusion to run a script / do something when the user closes the browser window. Is there a way that i can execute a script when a window is closed with php??
Posted: Fri Oct 25, 2002 9:31 pm
by hob_goblin
no.
thats what javascript was made for.
javaScript
Posted: Sat Oct 26, 2002 1:55 am
by phpScott
Because php is server side and has no idea what is going on with the client you would need to use a client side language like JavaScript which I believe has a window.close event.
phpScott
Posted: Sat Oct 26, 2002 12:31 pm
by hob_goblin
or the html onUnload event
<body onUnload="alert('bye');">