XSLT存档  

不及格的程序员-八神

 查看分类:  ASP.NET XML/XSLT JavaScripT   我的MSN空间Blog
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>

<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
/*
document.addEventListener("visibilitychange", function(e) 
{
      //浏览器切换事件
      
      if (document.visibilityState == "hidden") 
      {
        //状态判断
        debugger;
        document.title = "别离开";
        //e.cancelBubble=true;// ie下阻止冒泡
        e.preventDefault();
        e.stopPropagation();// 其它浏览器下阻止冒泡
        
      } else {
        document.title = "你来啦";
      }
});*/
window.onbeforeunload = function (e) {
  e = e || window.event;
  if (e) 
  {
    
    e.preventDefault();
    e.stopPropagation();
    e.returnValue = '关闭提示';
  }
  return '关闭提示';
};

//-->
</SCRIPT>
</BODY>
</HTML>

 

posted on 2022-10-27 16:17  不及格的程序员-八神  阅读(17)  评论(0编辑  收藏  举报