title: How to stop page propagation and show a custom pop up in page unload event
body: <p>When I have unsaved changes in a page, and user tries to navigate away from the page I want to show a custom pop up to the user instead of IE's default confirmation pop up in "unload" method of the page. But I am not able to stop the propagation of the page in the unload event.I have tried preventdefault() and stoppropagation(), cancelbubble() also, but nothing helped me.</p>
  
  <pre><code> $(window).bind('unload',function () {
  //how to stop the page from unloading and show the custom pop up
  }
  </code></pre>
  
  <p>Please suggest.Thank You.</p>