js页面跳转

假如想象 提交于 2020-01-28 06:00:18

第 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>

 

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!