JavaScript - - By Sam Deering

jQuery Capture Close of Popup Window

jQuery code snippet to Capture the Close of a Popup Window.

//monitor the closing of a popup window
var win ="",'','height=500,width=500');
var winTimer = window.setInterval(function()
    if (win.closed !== false)
        // !== is required for compatibility with Opera
        log('win closed...');
}, 200);
Login or Create Account to Comment
Login Create Account