<html>
<head>
<script language="javascript">
    var blnCheckUnload = true;
    window.onbeforeunload = function() {
        if(blnCheckUnload) {
            return("Are You Sure?");
        }
    }
</script>
<body>
</body>
</html>

重点是那个reuturn!

 

转自:http://blog.sina.com.cn/s/blog_4cb400450100iidu.html

感谢!

相关文章:

  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2022-01-16
  • 2022-12-23
  • 2021-07-04
猜你喜欢
  • 2022-12-23
  • 2021-05-05
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2022-02-18
相关资源
相似解决方案