posts - 14,  comments - 37,  trackbacks - 0
<script>   
  
function   window.onbeforeunload(){   
  
with(event)if(clientX>document.body.clientWidth   &&clientY<0||altKey)   
  alert(
"Close   window!")   
  
else   
  alert(
"Refresh   window!")   
  }
   
  
</script>
posted on 2007-07-10 14:00 冰封的爱 阅读(454) 评论(1)  编辑  收藏 所属分类: J2EE

FeedBack:
# re: IE关闭窗口时判断是关闭还是刷新
2009-09-08 20:49 | esue
请问如何判断IE选项卡的关闭,快捷键CTRL+W可以判断,鼠标点击要怎么处理?  回复  更多评论
  

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


网站导航:
 
<2024年5月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

常用链接

留言簿(3)

随笔档案

文章分类

文章档案

相册

搜索

  •  

最新评论

阅读排行榜

评论排行榜