JS 页面跳转

1.在原来的窗体中直接跳转用
window.location.href="你所要跳转的页面";

2.在新窗体中打开页面用:
window.open('你所要跳转的页面');
window.history.back(-1);返回上一页

3、一些用法
按钮式:
<INPUT name="_goto" type="button" value="GO" onclick="location.href='链接地址'">
链接式:<a href="javascript:history.go(-1)">返回上一页</a>
直接跳转式:
<script>window.location.href='链接地址';</script>
开新窗口:
<a href="/javascript:"
onclick="window.open(
'链接地址',
'',
'height=500,
width=611,
scrollbars=yes,
status =yes')">链接地址'</a>
<SCRIPT>  

原文地址:https://www.cnblogs.com/meng520/p/3547730.html