frame页面location

WBOY
Release: 2016-06-23 14:15:59
Original
946 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template