Home  >  Article  >  Backend Development  >  frame页面location

frame页面location

WBOY
WBOYOriginal
2016-06-23 14:15:59942browse

当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 = '跳转地址' 
是版主那样写,我写错了,不好意思

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:实现生成月报的方式Next article:php如何配环境