【发布时间】:2011-07-08 11:48:35
【问题描述】:
我的 HTML 中有一个 iframe。 从那个 iframe 我正在访问父窗口以检索具有 ID=result 的 DIV 的 HTML 代码
在 FF3、FF5 和 IE8 中一切正常,但在 Chrome 12 中却不行。 Iframe 中的代码是:
message = $(document, parent.window.document).contents().find('#resultsubmit').html();
但是,如果我删除 html() 方法 Chrome 是返回一个有效的对象(html 对象)
但是,一旦我添加 html() 来读取 de html,就会发生错误。
有什么线索吗?
【问题讨论】:
标签: jquery google-chrome iframe