This is a simple project that will teach you on how to detect unsaved work using javascript. If the user tries to close the window or tab of the browser without submitting the complete work,an alert message will appear and you will be ask to leave or stay on the page.
1. Download the source code.
2. Extract the compressed folder.
3. Open the index.html in any browser

This is just a simple program any updates or constructive criticism will be


Detecting Unsaved Work Javascript Source Code