js页面跳转

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

第 2种:
<script language="javascript">
alert("返回");
window.history.back(-1);
</script>

第 3种:
<script language="javascript">
window.navigate("top.jsp");
</script>

第 4种:
<script language="JavaScript">
self.location='top.htm';
</script>

第 5种:
<script language="javascript">
alert("非法访问!");
top.location='xx.jsp';
</script>

按钮式: 
  <INPUT name="pclog" type="button" value="GO" onClick="location.href='http://9ba.cn/'">

链接式:

  <a href="javascript:history.go(-1)">返回上一步</a>

  <a href="<%=Request.ServerVariables("HTTP_REFERER")%>">返回上一步</a>

直接跳转式:

  <script>window.location.href='http://www.9ba.cn';</script>

开新窗口:

  <a href="javascript:" onClick="window.open('http://www.9ba.cn/post/235.html','','height=500,width=611,scrollbars=yes,status=yes')">云上的日子</a>

找不到链接,在这里感谢原作者

原文地址:https://www.cnblogs.com/futao/p/2595377.html