I am creating a web application in which i have to show an editing prompt when user wants to navigate from the page.
I want to only show this when users had edited some value on that page and he does not save the changes then the prompt will ask "Do you want to save the changes ?". Otherwise if he saved then the prompt does not appear.
Editing prompt similar to MICROSOFT WORD/EXCEL to inform you that you are making changes and do you wish to proceed.
please give solution swiftly?