HI,
I am trying to display the content of a iframe in a div tag so that I can control the size of the display dynamically. The problem here is that the domain are different for parent window and the iframe content.
Code :
=====
[CODE=javascript]var x=document.getE lementById('myI Frame');
try{
x = x.contentWindow .document.body. innerHTML
}catch (e){
alert(e.message );
}
[/CODE] I am getting a "Access denied" exception. Is there a work around for the issue.
Please help.
Thanks
Sreenath
[removed email]
I am trying to display the content of a iframe in a div tag so that I can control the size of the display dynamically. The problem here is that the domain are different for parent window and the iframe content.
Code :
=====
[CODE=javascript]var x=document.getE lementById('myI Frame');
try{
x = x.contentWindow .document.body. innerHTML
}catch (e){
alert(e.message );
}
[/CODE] I am getting a "Access denied" exception. Is there a work around for the issue.
Please help.
Thanks
Sreenath
[removed email]
Comment