Does anyone know how to launch a new page or execute anything on the server when a user navigates away from a page? I can catch the event using Javascript using:
<body onunload="whatever()"> OR
<body onbeforeunload="whatever()">
But whenever I try to redirect to anther page it doesnt work...
Ie:
<body onunload="window.location=http://www.cnn.com">
<body onunload="whatever()"> OR
<body onbeforeunload="whatever()">
But whenever I try to redirect to anther page it doesnt work...
Ie:
<body onunload="window.location=http://www.cnn.com">
Comment