posts - 40,  comments - 4,  trackbacks - 0


  

<script language="javascript">
  g_blnCheckUnload 
= true;
  
function RunOnBeforeUnload() {
     
if (g_blnCheckUnload) {window.event.returnValue = 'You will lose any unsaved content';   
     }
  
  }

</script>
<body  onbeforeunload="RunOnBeforeUnload()">
</body>
二、
<script>
function window.onbeforeunload()
{
    
if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey)
    
{
        window.event.returnValue
="确定上传完成吗?";
    }
else
    
{
        alert(
"你在刷新");
    }

}

</script>
posted on 2007-12-11 13:35 larryjava 阅读(304) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: