捕获关闭窗口的脚本

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

JavaScript技术捕获关闭窗口的脚本,转载需保留来源!

郑重声明:本文版权归原作者所有,转载文章仅为传播更多信息之目的,如作者信息标记有误,请第一时间联系我们修改或删除,多谢。