chuvak
07-28-2003, 01:14 PM
Hi,
I got an iframe on my page and I would like to change some content inside that iframe dynamically.
How can I get the DOM tree of that frame?
I tried something like this:
...
<iframe id="ifr" src="..." ...>
</iframe>
...
document.getElementById("ifr").contentDocument.getElementById(<some id from that document>)...
This doesn't work however. Is the syntax wrong?
thanks in advance
I got an iframe on my page and I would like to change some content inside that iframe dynamically.
How can I get the DOM tree of that frame?
I tried something like this:
...
<iframe id="ifr" src="..." ...>
</iframe>
...
document.getElementById("ifr").contentDocument.getElementById(<some id from that document>)...
This doesn't work however. Is the syntax wrong?
thanks in advance