关于 fason(阿信) 老大判断用户是刷新还是关闭窗口的小段代码

dawn06 2003-07-04 05:21:09
<script>
var w=null;
function window.onbeforeunload()
{
if(event.clientX>document.body.clientWidth&&event.clientY<0||event.altKey){
return 'hello';
}
}
</script>

原文说这种方法并不理想 为什么阿,我觉得已经很好了

http://expert.csdn.net/Expert/topic/1946/1946337.xml?temp=.1834223
...全文
49 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
fason 2003-07-05
  • 打赏
  • 举报
回复
你将鼠标放到关闭位置,按f5

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧