<script src="scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(
        function () {
            $.post("Handler.ashx", {}, function (data) {
                datafrom = data;
            });
        }
        );


        window.onbeforeunload = beforeUnload;
        window.onunload = unload;

        var datafrom = "";
        var gotobaidu = false;
        function beforeUnload() {

            if (confirm(datafrom)) {
            }
            else {
                window.location.href = "http://www.baidu.com";
            }
        }
        function unload() {

        }
    </script>

 

相关文章:

  • 2021-09-09
  • 2021-12-16
  • 2021-06-10
  • 2022-02-07
  • 2022-03-06
  • 2021-10-11
  • 2022-02-27
猜你喜欢
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2021-10-30
  • 2022-02-06
  • 2021-09-08
  • 2021-05-21
相关资源
相似解决方案