Javascript 检测 页面是否在iframe中

            //检测是否在iframe中
            if(self.frameElement != null && (self.frameElement.tagName == "IFRAME" || self.frameElement.tagName == "iframe")){
                parent.parent.location = "login.jsp";
            }
posted @ 2011-06-16 16:43  拂晓风起-Kenko  阅读(1290)  评论(0编辑  收藏  举报