当前位置:Gxlcms > JavaScript > 捕获关闭窗口的脚本

捕获关闭窗口的脚本

时间:2021-07-01 10:21:17 帮助过:6人阅读

<html>
<body>
<script>
function LeaveWin(){
event.returnValue="call,确定要关闭吗";
}
window.onbeforeunload=LeaveWin;
</script>
</body>
</html>

人气教程排行