IE7/IE8 get unload when call jquery post
<p>I call like below function when user click button,</p>

<pre><code>&lt;script type="text/javascript"&gt;
  function callTest() {
    $.post("/testcall1", function(data){ 
      $('#testDiv1').html(data);
      $.post('/testcall2', function(data){
        $('#testDiv2').html(data);
      });
    });
  }
&lt;/script&gt;
</code></pre>

<p>Here when I call <code>callTest()</code>, in IE7 &amp; IE 8 gets unload once, and this will get fire the function which I write inside <code>confirmExit()</code>.</p>

<pre><code>window.onbeforeunload = confirmExit;
function confirmExit() { 
  //some code; 
}
</code></pre>

<p>But this call is not happening in other browsers except IE7 and IE8. 
How can we prevent calling <code>confirmExit()</code> in IE7/IE8?</p>
