iFrame not loading URL

前端 未结 5 849
心在旅途
心在旅途 2020-12-28 15:41

I am using the following simple iFrame code to load Yahoo but it\'s not loading anyway. in Chrome Inspector I see the URL status as 301 first and then cancel. Any idea why i

5条回答
  •  爱一瞬间的悲伤
    2020-12-28 15:55

    Its also very easy to ask site not to load if you are in an iframe with simple javascript. For example, twitter does this

    
    

    I did not see a console error here and so I guess this is the case here.

    The Yahoo! JavaScript is obfuscated but you can see they are definitely removing something at this snippet. (Code taken from yahoo website)

    if(self!==self.top){b=function(){if(g.readyState=="complete"){f.remove(g,e,b);
    

提交回复
热议问题