history,localtion

   //第一个页面
    <input type="button" value="跳转" onclick="forw()">
    <a href="tiao.html">跳一跳</a>
    <script>
        function forw(){
            history.forward();
        }
                //第二个页面
        <input type="button" value="fanhui" onclick="vv()">
    <script>
        function vv(){
            history.back()
        }


<input type="button" value="刷新" onclick="location.reload()">
<input type="button" value="重定向" onclick="location.href='http://www.baidu.com' ">
 

猜你喜欢

转载自www.cnblogs.com/TKOPython/p/12821106.html