How to prevent calling onbeforeunload when page refresh
<p>I want to prevent calling the function "confirmExit()" when page get refresh,Is it possible to do that ? </p>


window.onbeforeunload = confirmExit;
function confirmExit()
{
   $.post("test.php");
}


<p>Kindly give some idea</p>

<p>Thanks in Advance 
Dinesh Kumar Manoharan</p>
