JS实现页面跳转代码

时间:2024-10-23 05:36:48

1、跳转到其他页面functionjump(){window.location.href='http://wisejenny.blog.163.com/blog/www. baidu.com';}

2、回退window.history.back(-1);

3、按钮式跳转<INPUT name="pclog" type="button" value="GO" onClick="location.href='http://www.ddhbb.com/'">

4、链接跳转<a href="javascript:history.go(-1)">返回上一步</a>

5、<a href="javascript:" onClick="window.open('http://www.baidu.com','','height=500,width=611,scrollbars=yes,status=yes')">百度</a>新开页面跳转

© 手抄报圈