//判断浏览器是刷新还是关闭
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("是关闭")
}
}
判断浏览器是关闭还是刷新
最新推荐文章于 2022-06-14 16:19:58 发布
1113

被折叠的 条评论
为什么被折叠?



