I am saving records on save button click, if user don’t click save button and navigate to another page while clicking on some link even then i want to call the save method.
How can I achieve this functionality?
please provide some sample code …
thanks in advance for your help
You can make ajax request on
Or can prevent the user by giving confirm box
For example check this out when I leave this page while answering SO prevent me