(function(){

/*

* JS禁止网页被iframe或frameset嵌套 检测到被嵌套时自动跳出框架

* 支持IE、Chrome、Firefox、Opera、Safari等所有浏览器

* 将此段代码放置在之间 尽量作为第一段js代码 可以节省渲染时间

*/

var isIframed = false;

try{

var topURL = window.top.location.href;

isIframed = topURL !== window.location.href;

}catch(e){

isIframed = true;

}finally{

if(isIframed){

try{

window.top.location.replace(window.location.href);

}catch(e){

}

}

}

})();

handsome用户将这段代码加入自定义JavaScript即可

Last modification:July 26th, 2019 at 02:48 pm
If you think my article is useful to you, please feel free to appreciate