- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <title> New Document </title>
- <meta name="Generator" content="EditPlus">
- <meta name="Author" content="">
- <meta name="Keywords" content="">
- <meta name="Description" content="">
- </head>
- <body>
- <script type="text/javascript">
- window.onbeforeunload = onbeforeunload_handler;
- function onbeforeunload_handler(){
- var warning="确认关闭www.CodeSnippet.cn?";
- //你的业务操作。。。。
- return warning;
- }
- </script>
- </body>
- </html>
- //该片段来自于http://www.codesnippet.cn/detail/220920136024.html
来源: http://www.codesnippet.cn/detail/220920136024.html