title: Why is jQuery onbeforeunload not working in Chrome and Firefox?
body: <p>jQuery <code>onbeforeunload</code> is not working in Chrome and Firefox. It works properly in IE and Safari. </p>
  
  <pre><code>jQuery(window).bind('onbeforeunload' ,function () {
      mymethod();
  });
  </code></pre>
  
  <p>Above code works properly in IE and in Safari but not in Firefox and Chrome.</p>