I have an aspx page. On the page I have a javascript function
window.onbeforeunload = confirmExit;
function confirmExit()
{
return "You have attempted to leave this page. If you have made any changes to the fields without clicking the Submit button, your changes will be lost. Are you sure you want to exit this page?";
}
This executes when the user leaves the page. However it also executes on the partial page postbacks. How do I check to see if this is a partial page postback and ignore it?