I have an element on page:
<iframe vspace="0" hspace="0"
style="overflow-y:auto;overflow-x:auto;word-wrap:break-word;border:0px;"
id="some-iframe"></iframe>
and I'm trying to get contentWindow property of t开发者_JAVA百科his frame using the following javascript:
document.getElementById('some-iframe').contentWindow
It's ok under at least FF, Opera, Chrome, but under IE8 I get:
>>> document.getElementById('some-iframe').contentWindow
[ ]
What's there wrong and how do I get contentWindow object under IE8?
Stupid I, the "problem" is solved, []
is just FireBug Lite strange behavior.
精彩评论