changeset 1666:c71b75f48752

Added page-exit checks
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Fri, 17 Apr 2015 10:06:20 +0100
parents 6d000b353a7e
children f82f0a3bfc14
files apeTool.html
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/apeTool.html	Fri Apr 17 09:57:46 2015 +0100
+++ b/apeTool.html	Fri Apr 17 10:06:20 2015 +0100
@@ -26,7 +26,11 @@
 		<!-- Use jQuery hosted from Google CDN -->
 		<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
 		<script src='core.js'></script>
-		
+		<script type="text/javascript">
+			window.onbeforeunload = function() {
+				return "Please only leave this page once you have completed the tests. Are you sure you have completed all testing?";
+			};
+		</script>
 		<!-- Uncomment the following script for automatic loading of projects -->
 		<script>
 			url = 'example_eval/project.xml'; //Project XML document location