欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

frame页面location

程序员文章站 2022-05-01 18:45:06
...
当session失效后,使用location='跳转地址'跳转到登陆页。

左边页面
右边页面

遇到问题:在session失效后,点击右边页面某个功能,结果右边页面跳转到登录页面,左边页面继续存在,如何解决?

回复讨论(解决方案)

用window.location.href="跳转地址跳转到登陆页"

用window.location.href="跳转地址跳转到登陆页"
location.href和location没区别。


用window.location.href="跳转地址跳转到登陆页"
location.href和location没区别。

用window.location.top="跳转地址跳转到登陆页"

top.location = '跳转地址'

top.location = '跳转地址'
是版主那样写,我写错了,不好意思

相关标签: frame页面location