学习:常用javascript页面跳转

按钮式:

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

文章来源:http://www.sharepoint.org.cn/Lists/Posts/Post.aspx?List=a39f2555%2D2550%2D4bba%2D9b63%2D6c9a8c165872&ID=43

原文地址:https://www.cnblogs.com/LeimOO/p/1522720.html