捕获关闭窗口的脚本 2020-02-16 分类:首页 标签Tags:捕获,关闭,窗口,脚本,html,body,script,function,leavewin,event,returnvalue,call,确定,window
<html> <body> <script> function LeaveWin(){ event.returnValue="call,确定要关闭吗"; } window.onbeforeunload=LeaveWin; </script> </body> </html> 以上就是【捕获关闭窗口的脚本】的全部内容了,欢迎留言评论进行交流!