【发布时间】:2012-04-13 19:28:48
【问题描述】:
我有这个环境:
Page1.html:
<iframe id="ifr" name="nifr" src="Page2.html" enableviewstate="true" width="800" height="600" frameborder="1" style="z-index:0" ><p>Su navegador no soporta iframes.</p></iframe>
Page2.html:
<frameset rows="30,*" frameborder="no" framespacing="0">
<frame id="titleFrame" frameborder="no" marginwidth="0" marginheight="0" scrolling="no" src="title.html">
<frame id="viewerFrame" frameborder="no" marginwidth="0" marginheight="0" scrolling="no" src="anotherPage.html">
</frameset>
如何使用 javascript 获取框架“viewerFrame”?我只在 Internet Explorer 上工作
提前致谢
【问题讨论】:
-
您正在使用框架、iframe 和 IE。听起来像是撒旦的仪式。
-
从什么级别获取 iframe?
-
@OhCaN 我知道,也无能为力,“Page2.html”不是我的网页,我要创造奇迹:S
-
@epascarello 获取 Page2.html 的 frame,Page2.html 作为 iframe 在 Page1.html 内部。有点棘手
标签: javascript html iframe frame