Alert user before leaving web page with unsaved changes

I have spent the last few days trying to search for the solution to alert users before leaving the web page when users make some change and try to leave the page without saving changes.

After trying multiple solutions using client-side and server-side, I found a very useful jQuery plugin – Are You Sure?

Find how you can configure in your project from here. GitHub 

I found this very simple and useful solution for form-based web applications.

Hope this information will helpful to you.

Happy Coding 🙂