Hi
I am having great trouble accessing the innerHTML (and changing it) for a IFrame on my page, using JavaScript.
Nothing seems to work in IE (I have managed to get it working in Firefox)
Can anyone help?
accessing IFrame innerHtml
Moderator: General Moderators
Thaks for your replies,
I am using the following line of code
document.getElementById('rte1').contentWindow.document.body.innerHTML='Hello World';
However, instead of updating the Iframe's html content to read 'Hello World' a blank document replaces the current document, with the Hello World as the Text.
Iframe id is set to rte1.
Kind Regards
I am using the following line of code
document.getElementById('rte1').contentWindow.document.body.innerHTML='Hello World';
However, instead of updating the Iframe's html content to read 'Hello World' a blank document replaces the current document, with the Hello World as the Text.
Iframe id is set to rte1.
Kind Regards