js如何判断当前页面处于最顶级窗体

if(top== self){

//在顶级窗口
}else{
//不在
}
 
https://zhidao.baidu.com/question/308150730026502444.html
原文地址:https://www.cnblogs.com/Ly426/p/10104980.html