title: Correct way to use before unload event on Internet Explorer?
body: <p>I am trying to track data in background when user leaves the website. This worked in firefox and chrome. But doesn't work on internet explorer. What is the correct way to use before unload event on Internet Explorer ?</p>
  
  <pre><code>$(window).bind('beforeunload', function () {
      $.post("track.php", {
          async: false,
          ip: ip,
          plansclick: plansclick,
      });
  });
  </code></pre>