diff --git a/public/js/unsaved.js b/public/js/unsaved.js new file mode 100644 index 0000000..7406b14 --- /dev/null +++ b/public/js/unsaved.js @@ -0,0 +1,4 @@ +// Load this on all pages requiring exit confirmation. +$(window).bind('beforeunload', function(){ + return "Are you sure you want to exit this page? You might have unsaved work."; +}); \ No newline at end of file