码迷,mamicode.com
首页 > Web开发 > 详细

JS - 跳转页面

时间:2015-07-29 11:58:53      阅读:112      评论:0      收藏:0      [点我收藏+]

标签:

    <!--    第一种:   -->
    <script type="text/javascript">
        window.location.href = "login.jsp?backurl=" + window.location.href;
    </script>

    <!--    第二种:   -->
    <script type="text/javascript">
        alert("返回"); window.history.back(-1);
    </script>

    <!--    第三种:-->
    <script type="text/javascript">
        window.navigate("top.jsp");
    </script>

    <!--    第四种:  -->
    <script type="text/javascript">
        self.location = ‘top.htm‘;
    </script>

    <!--    第五种:  -->
    <script type="text/javascript">
        alert("非法访问!"); top.location = ‘xx.jsp‘;
    </script>

  

JS - 跳转页面

标签:

原文地址:http://www.cnblogs.com/KTblog/p/4685341.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!