title: How can I detect the closing of an external window in JS?
body: <p>I have a piece of code that opens a window with:</p>
  
  <pre><code>  $("#authorization_link").click(function() {
      win = window.open($(this).attr("href"),'width=800,height=600');
    });
  </code></pre>
  
  <p>Now I want to run another block when window <code>"win"</code> is closed. What is the event and how do I run code on its detection?</p>