Entry
how to open a new window When the user close the Browser and not in refresh
Apr 6th, 2008 19:36
ha mo, Colin Fraser, bu ddu,
As far as I am aware, it is not possible to activate an event on the
closure of the browser. In this, I am assuming you mean the exiting of
the browser.
There is however the onUnload event that is activated when the page is
unloaded from the browser window, which includes eveytime the window
changes.
Try :
<script> <!--// hide function
function myWindowOpener() {
popUp=window.open("goodbye.html","myWin","height=200,width=300");
}
</script>
<body onUnload="myWindowOpener()">
Just substitute whatever values you want in the window.open() statement
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com