Javascript 检测 页面是否在iframe中
//检测是否在iframe中
if(self.frameElement != null && (self.frameElement.tagName == "IFRAME" || self.frameElement.tagName == "iframe")){
parent.parent.location = "login.jsp";
}
if(self.frameElement != null && (self.frameElement.tagName == "IFRAME" || self.frameElement.tagName == "iframe")){
parent.parent.location = "login.jsp";
}
kenkofox@qq.com
https://github.com/kenkozheng
欢迎投简历给我,一线大厂工作机会