<script type="text/javascript">
window.onbeforeunload=function window.onbeforeunload(){
if (document.body.clientWidth-event.clientX<21||event.altKey||event.ctrlKey){
alert("close");
}else{
window.event.returnValue="";
alert("refrash");
return false;
}
}
</script>
js判断是关闭窗口还是刷新窗口
最新推荐文章于 2022-06-14 16:19:58 发布