您的位置:首页 > Web前端 > HTML

IE与FireFox都支持的 onbeforeunload事件(转)

2010-08-16 14:39 579 查看
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
   <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
   <title>onbeforeunload测试</title>
   <mce:script type="text/javascript"><!--
var blnCheckUnload = true;
window.onbeforeunload = function() {
if(blnCheckUnload) {
return("Are You Sure?");
}
}
  
// --></mce:script>
   </head>
   <body >
   </body>
   </html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  firefox ie function html 测试