upload matchn game
Browse files- matchn/MatchNGame.html +18 -17
matchn/MatchNGame.html
CHANGED
|
@@ -145,23 +145,24 @@
|
|
| 145 |
</head>
|
| 146 |
<body>
|
| 147 |
<script>
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
|
|
|
| 165 |
</script>
|
| 166 |
<canvas id='canvas'>
|
| 167 |
HTML5 canvas appears to be unsupported in the current browser.<br />
|
|
|
|
| 145 |
</head>
|
| 146 |
<body>
|
| 147 |
<script>
|
| 148 |
+
window.addEventListener('beforeunload', function(event){
|
| 149 |
+
var message = 'Are you sure you want to leave?';
|
| 150 |
+
event.returnValue = message;
|
| 151 |
+
return message;
|
| 152 |
+
})
|
| 153 |
+
|
| 154 |
+
<!-- g_blnCheckUnload = true; -->
|
| 155 |
+
|
| 156 |
+
<!-- window.onbeforeunload= function (e) { -->
|
| 157 |
+
<!-- e = e || window.event; -->
|
| 158 |
+
<!-- if (e) { -->
|
| 159 |
+
<!-- e.returnValue = '关闭提示'; -->
|
| 160 |
+
<!-- } -->
|
| 161 |
+
|
| 162 |
+
<!-- // Chrome, Safari, Firefox 4+, Opera 12+ , IE 9+ -->
|
| 163 |
+
<!-- return '关闭提示'; -->
|
| 164 |
+
<!-- }; -->
|
| 165 |
+
|
| 166 |
</script>
|
| 167 |
<canvas id='canvas'>
|
| 168 |
HTML5 canvas appears to be unsupported in the current browser.<br />
|