Forum Moderators: open
Basically, I want to load content from an external page into a hidden iframe in the background and then once it is live set it as viewable. Can anyone point me in the right direction please?
It's fairly simple actually, turns out you can place on onLoad parameter into the iframe definition.
e.g.
<iframe id=myiframe name=iframe src=somepage.html onLoad=some_javascript_function()></iframe>
This works for IE6, and Firefox. However, earlier Opera versions don't seem to support it. For that you need to continually check myiframe.document.readyState. Once the iframe has loaded it is set to "complete".
Hope it helps someone