<script Language="JavaScript">
<!--
window.onbeforeunload = function() { var n = window.event.screenX - window.screenLeft; var b = n > document.documentElement.scrollWidth-20; 
if(b && window.event.clientY < 0 || window.event.altKey) { alert("是关闭而非刷新"); window.open(this.location);   } else{alert("是刷新而非关闭"); }}
 
</script>
这个在火狐里面不无效?求救,大家帮帮忙,弄一天了都~~
我是为了让同一用户不能同时在线的功能,现在就是在关闭页面的时候我要清除SESSION 望经验同志指点~~