【发布时间】:2010-07-19 15:34:02
【问题描述】:
我的页面上有一个 iFrame,它显示 XML 文档。
<iframe id="iFrame2" name="iFrame2" width="100%" height="100%">
我需要从父页面访问 iFrame 中的 XML 文档。我该怎么做?
当我尝试时:
console.log(iFrame2.document);
我收到以下错误:
Permission denied for <http://localhost:3000> to get property Window.document from <http://www.imageshack.us>.
【问题讨论】: