Is there a way to alert a user that they have not saved their changes on a form, if they attempt to close the page without saving?
I can use an onChange function to set a variable when any field is changed.
But what is the best way to trigger the alert?
(This form is within a frame, so the user can click on an index link to replace the form page, as well as closing the whole browser.)
I also don't want the user in a loop where they cannot close the form at all without saving, just in case they changed something by accident and do not want to save it.
I just need to alert them that they did not save.
Thanks for any suggestions.
I can use an onChange function to set a variable when any field is changed.
But what is the best way to trigger the alert?
(This form is within a frame, so the user can click on an index link to replace the form page, as well as closing the whole browser.)
I also don't want the user in a loop where they cannot close the form at all without saving, just in case they changed something by accident and do not want to save it.
I just need to alert them that they did not save.
Thanks for any suggestions.