Nested iframes, AKA Iframe Inception

后端 未结 8 1604
慢半拍i
慢半拍i 2020-11-28 08:10

Using jQuery I am trying to access div id=\"element\".


    


As you can see, once the first Iframe is loaded, I get the second one and clone it. I then reinsert it in the dom, so I can get access to the onload event. Once this one is loaded, I retrieve the content from non-cloned one (must have loaded as well, since they use the same src). You can then do wathever you want with the content.

Here is the Test_Iframe.html file :






    
Test_Iframe

and the Test_Iframe2.html file :






    
I am the second nested iframe

提交回复
热议问题