window.onbeforeunload = function(e) {
if (event.clientX < document.body.clientWidth && event.clientY < 0 || event.altKey) {
return "确认退出浏览器吗?";
}
}
浏览器关闭,显示提示信息
最新推荐文章于 2024-07-03 16:01:23 发布
window.onbeforeunload = function(e) {
if (event.clientX < document.body.clientWidth && event.clientY < 0 || event.altKey) {
return "确认退出浏览器吗?";
}
}