title: Run code on window unload?
body: <p>I would like to know if there is a way to capture a page unload event that is supported by Android 2.1+ browsers (2.1 has to be supported)</p>
  
  <p>I have tried</p>
  
  <pre><code>$(window).unload(function () { });
  $(window).on('beforeunload', function () { });
  </code></pre>
  
  <p>Neither seem to work.</p>