I have a NumericTextBox on a page that prompts the user when they try to navigate away from that page if they have unsaved changes.
My javascript:
My javascript:
window.onbeforeunload = function () { if (isDirty) { return 'You have unsaved changes. You will lose your changes if you leave the page.'; } };
The issue is that if I enable the spinbuttons on the numeric textbox this event fires whenever the user clicks the spin button, even though they don't navigate away. Is there a way to prevent this event from firing?
