title: Handle 'Close' event of Print dialog box
body: <p>I am using <a href="https://plugins.jquery.com/PrintArea/" rel="nofollow">PrintArea</a> and I want to handle 'Close' event of Print dialog box(Chrome, Firefox,...). I have tried </p>
  
  <pre><code>window.onclose = function(){
     // do something
  }
  </code></pre>
  
  <p>but it did not work.</p>
  
  <p>Is there any way to do it?</p>
  
  <p>Any solution is appreciated.</p>