javascript页面跳转常用代码
按钮式: <INPUT name="pclog" type="button" value="/GO"onClick="location.href='http://www.itpx.net/'"><br/>
链接式: <a href="javascript:history.go(-1)">返回上一步</a> <br/>
<a href="<%=Request.ServerVariables("HTTP_REFERER")%>">返回上一步</a><br/>
直接跳转式: <script>window.location.href='http://www.itpx.net';</script> <br/>
开新窗口: <a href="/javascript:" onClick="window.open('http: //www.itpx.net','','height=500,width=611,scrollbars=yes,status =yes')">培训</a> <br/>
本文介绍了几种使用JavaScript实现页面跳转的方法,包括按钮点击跳转、链接式跳转、直接跳转及新开窗口等,为网页开发者提供了实用的代码示例。
1239

被折叠的 条评论
为什么被折叠?



