获取iframe的内容 [英] Getting contents of iframe
本文介绍了获取iframe的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图从另一页获取< iframe>
的内容。
其他页面是不同的网站;我登录到该网站并获取其内容并将其存储在< iframe>
中。
我该如何获取< iframe>
的内容到当前窗口?
I'm trying to get the contents of an <iframe>
from another page.
The other page is a different website; I'm logged into that website and I get its contents and store it in the <iframe>
.
How do I get the contents of that <iframe>
into the current window ?
解决方案
The short answer: you can not do it. Browsers restrict the interaction between content from different websites using the same origin policy.
这篇关于获取iframe的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文