فهرست منبع

Helios: Confirm before closing the window

Nicolas Petton 11 سال پیش
والد
کامیت
bb6b63ce28
1فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 6 0
      helios.html

+ 6 - 0
helios.html

@@ -19,5 +19,11 @@
     
     <div id="helper">Loading Helios...</div>
 
+    <script type="text/javascript">
+      window.onbeforeunload = function() {
+      return 'Do you want to close Amber? All uncommitted changes will be lost.';
+};
+    </script>
+
   </body> 
 </html>