I want to raise an event when a popup window is closed, or preferably, just before closing. I\'m storing the popup window object as an object, but I don\'t know of any way to bi
From what I checked the jQuery unload is just a wrapper for the native function. I could be wrong as I didn't dug that deep.
This example worked for me.
$(document).ready(function(){
$(window).unload( function (){
alert('preget');
$.get(
'/some.php',
{ request: 'some' }
);
alert('postget');
});
});
Remember that some browsers block the window.open requests on unload, IE for example.