作者:呼呼小琰琰 | 来源:互联网 | 2023-08-30 15:31
This is the iframe I'm trying to access:
这是我试图访问的iframe:
Using this line:
使用此行:
frames['additionalTxt_f'].document.getElementsByTagName("body")[0].innerHTML
For some reason I'm getting "frames.additionalTxt_f is undefined" from firebug. I have similar iframes (dynamically created by punyMCE plugin) on other pages, and they work perfectly fine. And IE7/8 has no problem accessing this iframe either.
出于某种原因,我从firebug得到“frames.additionalTxt_f未定义”。我在其他页面上有类似的iframe(由punyMCE插件动态创建),它们工作得很好。 IE7 / 8也可以访问这个iframe。
Just at a complete loss here. Any ideas on why Firefox can't find the iframe?
在这里完全失败了。关于Firefox无法找到iframe的任何想法?
2 个解决方案