js判断当前窗口是否有父窗口

来源:互联网 发布:练字软件免费下载 编辑:程序博客网 时间:2024/06/05 11:29
<script>if(top.location!=self.location){top.location = "<%=basePath%>/login.jsp";}else{window.location.href = "<%=basePath%>/login.jsp";}</script>

0 0