title: Alert is not getting displayed in onbeforeunload event in any browsers?
body: <p>Below is the code which works.</p>
  
  <pre><code>window.onbeforeunload = function() {
      someAjaxCall();
  }
  </code></pre>
  
  <p>Below is the code which does not work.</p>
  
  <pre><code>window.onbeforeunload = function() {
      someAjaxCall();
      alert("Success !!");
  }
  </code></pre>
  
  <p>Can I not put alerts in onbeforeunload?</p>