JavaScript实现页面跳转的五种方式
第一种:
<script type="text/javascript" language="javascript"> window.location.href="login.jsp?backurl="+window.location.href;</script>
第二种:
<script type="text/javascript" language="javascript"> alert("返回"); window.history.back(-1);</script>
第三种:
<script type="text/javascript" language="javascript">window.navigate("http://www.javaweb.cc");</script>
第四种:
<script type="text/javascript" language="JavaScript">self.location=‘top.htm‘;</script>
第五种:
<script type="text/javascript" language="javascript">alert("非法访问!"); top.location=‘http://javaweb.cc‘;</script></strong>