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
;
16 window
.onbeforeunload = function() {
17 if (close_call_num
<= 2)
18 setTimeout("changeTitle()", 0);
19 return "some random string";
24 OnBeforeUnloadHandler In Panels.