当前位置: 代码迷 >> Web前端 >> 抗御iframe弹出恶意广告
  详细解决方案

抗御iframe弹出恶意广告

热度:177   发布时间:2012-11-22 00:16:41.0
抵御iframe弹出恶意广告
抵御iframe弹出恶意广告
网页被运营商劫持后,总会弹出iframe的广告。
使用以下代码,能防止网页被iframe
if(top!=self){
        top.location=self.location;                
}

另付上工信部投诉地址:http://www.chinatcc.gov.cn:8080/cmsadmin/shouli/shensu.jsp
  相关解决方案