现在的位置: 首页 > 综合 > 正文

Javascript页面跳转方法

2013年07月30日 ⁄ 综合 ⁄ 共 213字 ⁄ 字号 评论关闭

//在当前页面打开

location.href="http://www.google.cn/";

window.location.href="http://www.google.cn/";

//后退到前一页面

history.go(-1);

//在新页面打开

window.open('http://www.google.cn/','','height=500,width=611,scrollbars=yes,status=yes');

抱歉!评论已关闭.