`
flyinbed
  • 浏览: 4352 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

页面跳转代码--纯属学习兴趣

阅读更多
自己在网上搜集的一些js跳转代码

javascript页面跳转常用代码

按钮式:
<INPUT name="pclog" type="button" value="/GO"onClick="location.href='http://www.baidu.com'"><br/>

链接式:
<a href="javascript:history.go(-1)">上一步</a> <br/>
<a href="<%=Request.ServerVariables("HTTP_REFERER")%>">上一步</a><br/>

直接跳转式: <script>window.location.href='http://www.baidu.com';</script> <br/>

打开新窗口: <a href="/javascript:" onClick="window.open('http: //www.baidu.com','','height=500,width=611,scrollbars=yes,status =yes')">培训</a> <br/>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics