Roll leveldb 3f7758:803d69 (v1.17 -> v1.18)
[chromium-blink-merge.git] / chrome / test / data / panels / onbeforeunload.html
blob5c36c45e4a40314a1e19afb541e4065ae49e135d
1 <html>
2 <head>
3 <script>
4 var close_call_num = 1;
5 var title_first_close = "TitleFirstClose";
6 var title_second_close = "TitleSecondClose";
8 function changeTitle() {
9 if (close_call_num == 1)
10 document.title = title_first_close;
11 else if (close_call_num == 2)
12 document.title = title_second_close;
13 close_call_num++;
16 window.onbeforeunload = function() {
17 if (close_call_num <= 2)
18 setTimeout("changeTitle()", 0);
19 return "some random string";
21 </script>
22 </head>
23 <body>
24 OnBeforeUnloadHandler In Panels.
25 </body>
26 </html>