<script>
window.onbeforeunload=function (){
alert("===onbeforeunload===");
if(event.clientX>document.body.clientWidth && event.clientY < 0 || event.altKey){
alert("你关闭了浏览器");
}else{
alert("你正在刷新页面");
}
}
</script>
详细解决方案
JS刷新页面跟关闭
热度:39 发布时间:2013-08-26 12:17:40.0
相关解决方案