title: Alternative for JavaScript onUnload
body: <p>there is an alternative to the Javascript <strong><code>onUnload</code></strong>? I use <strong>JSP Jakarta Struts</strong> framework with a <strong>Servlets</strong>.</p>
  
  <p>I must know, when is window closing, because <strong>not</strong> everyone clicks on Logout button.<br>
  How do you handle it in your applications? </p>