I have a piece of code that opens a window with:
$("#authorization_link").click(function() {
win = window.open($(this).attr("href"),'width=800,height=600');
});
Now I want to run another block when window "win"
is closed. What is the event and how do I run code on its detection?