I am working with an aspx page that includes a javascript function
window.onbeforeunload = confirmExit;
function confirmExit()
{
return "You have tried to navigate away from this page. If you made changes without clicking Submit, they will be lost. Are you sure you want to leave?";
}
While this function runs when the user leaves the page, it also triggers during partial page postbacks. How can I determine if it's a partial page postback and disregard it?