判断网页是否嵌套在框架中

if (top!= self) {//判断网页是否嵌套在框架中
    }

if (top.leftFrame == null) {  //判断是否存在左侧框架  }

原文地址:https://www.cnblogs.com/songling/p/2354619.html