登录页面跳到最顶层,跳出iframe

<script type="text/javascript">
// 判断当前页面是否为顶层窗口,即是否在iframe外面
if(window.top!=window.self){
window.top.location.href=location.href;// 往上跳一层
}
</script>
posted @ 2019-12-25 11:11  JAVA之家TY  阅读(512)  评论(0编辑  收藏  举报