【发布时间】:2012-10-08 11:25:00
【问题描述】:
我创建了一个带有 iframe 的 asp.net 页面。 iframe 有一个 HTML 页面。现在我通过 url Admin/Home.aspx#Personnel_Data 引用 HTML 内容。但它不起作用。请帮我解决这个问题。
【问题讨论】:
我创建了一个带有 iframe 的 asp.net 页面。 iframe 有一个 HTML 页面。现在我通过 url Admin/Home.aspx#Personnel_Data 引用 HTML 内容。但它不起作用。请帮我解决这个问题。
【问题讨论】:
试试这些
docment.getElementById('iframe').contentWindow.
document.getElementById('FrameId').contentWindow.document.body.innerHTML
document.getElementById('FrameId').contentWindow.document.body.outerHTML
var doc = document.getElementById('FrameId').contentWindow.document;
【讨论】: