SurvivorTiger
Programmer
Hi everyone,
I have a page where users can modify certain data and upon clicking "Submit", the data will get saved. But if they click on any other links on the page, they will lose their changes made to the data. So i want a message box to pop up and say something like "are you sure you want to exit without saving your data" with a "Yes/No" or "Ok/Cancel" button. if the user clicks No or Cancel they'll remain on that page, otherwise they lose their data and will be taken to another page. So, can someone please tell me how to do this?
Thanks
I have a page where users can modify certain data and upon clicking "Submit", the data will get saved. But if they click on any other links on the page, they will lose their changes made to the data. So i want a message box to pop up and say something like "are you sure you want to exit without saving your data" with a "Yes/No" or "Ok/Cancel" button. if the user clicks No or Cancel they'll remain on that page, otherwise they lose their data and will be taken to another page. So, can someone please tell me how to do this?
Thanks