G
Guest
Hi,
I have an ASP.net application that has some javascript written for the
onbeforeunload event which asks the user if they want to save changes before
they leave. However, there is a problem with this because if I click the
Save Changes button it asks me the same question as in the onbeforeunload
event because when the button is clicked it does a postback which causes that
event to fire.
Is there a way that I can get around that so that question doesnt' come up
when I click the save button?
Also is there a way that I can Monitor controls so that the question in the
onbeforeunload event fires only when one of those controls has changed
I have an ASP.net application that has some javascript written for the
onbeforeunload event which asks the user if they want to save changes before
they leave. However, there is a problem with this because if I click the
Save Changes button it asks me the same question as in the onbeforeunload
event because when the button is clicked it does a postback which causes that
event to fire.
Is there a way that I can get around that so that question doesnt' come up
when I click the save button?
Also is there a way that I can Monitor controls so that the question in the
onbeforeunload event fires only when one of those controls has changed