退出时如何跳出frameset框架

来源:互联网 发布:中国历代位面之子知乎 编辑:程序博客网 时间:2024/05/17 02:53
 <html>      <head>        </head>      <body>      <script type="text/javascript">      if (window.top!=window.self){          window.top.location="index.htm"; //这是重要的!    }      </script>      </body>      </html>  

在frameset的页面中登出,往往会在frame在框架内,那么重定向到这个页面就可以了。
如果是直接登出,herf中有个属性叫做target=”_top”

0 0
原创粉丝点击