Add a warning about unsaved changes when exiting the cataloguing (addbiblio.pl) page. http://stackoverflow.com/questions/11844256/alert-for-unsaved-changes-in-form Possible code: var unsaved = false; $(":input").change(function(){ //trigers change in all input fields including text type unsaved = true; }); function unloadPage(){ if(unsaved){ return "You have unsaved changes on this page. Do you want to leave this page and discard your changes or stay on this page?"; } } window.onbeforeunload = unloadPage;
The advanced editor does this already - so it might be nice to have the same on the normal editor.