这段代码,加在你的登录页面
方式一:
<script type="text/javascript">
if (top.location !== self.location) {top.location=self.location;
}
</script>
方式二:
- <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"