关于 fason(阿信) 老大判断用户是刷新还是关闭窗口的小段代码
<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