diff --git a/shellinabox/root_page.html b/shellinabox/root_page.html index 38bde27..41b6488 100644 --- a/shellinabox/root_page.html +++ b/shellinabox/root_page.html @@ -99,6 +99,16 @@ ''); } })(); + + // User warning on window close + window.onbeforeunload = function(e) { + if (typeof window.shellinabox.session != "undefined") { + return "Are you sure you want to leave this page?"; + } else { + return null; + } + } + --> @@ -107,7 +117,7 @@ correctly deal with the enclosing frameset (if any), if we do not do this --> -