<table class="html5">
<tr class="li1"><td class="ln"><pre class="de1">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 > > > >Document> > > > > window.addEventListener("beforeunload",function (e) { var confirmationMessage = '确定离开此页吗?本页不需要刷新或后退'; (e || window.event).returnValue = confirmationMessage; // Gecko and Trident return confirmationMessage; // Gecko and WebKit }); > > 原文链接:/note/421645.html