JavaScript window对象页面跳转

本页面跳转

window.location.href=''
window.location.href=''

上一层页面跳转

HTML如果使用模板frameset, 实现单个子页面让所有页面跳转,可以用这个方法

window.parent.location.href=''

最外层的页面跳转

window.top.location.href=''
posted @ 2020-01-15 22:15  Haidnor  阅读(680)  评论(0)    收藏  举报