您的位置:首页 > 其它

退出时如何跳出frameset框架

2016-07-25 13:33 225 查看
<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”
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: