M
markww
I cannot get the contents of an iframe in my page, it is quickly
driving me insane. My iframe is defined like:
<iframe id = "e_body" name = "e_body" src="about:blank"></iframe>
I've made a function to retrieve the contents like:
function GetIFrameContentsPlease()
{
var strContents =
document.getElementById("e_body").document.body.innerHTML;
alert("the contents are: " + strContents);
}
but it fails. I need this to work on IE and FF, any suggestions?
Thanks
driving me insane. My iframe is defined like:
<iframe id = "e_body" name = "e_body" src="about:blank"></iframe>
I've made a function to retrieve the contents like:
function GetIFrameContentsPlease()
{
var strContents =
document.getElementById("e_body").document.body.innerHTML;
alert("the contents are: " + strContents);
}
but it fails. I need this to work on IE and FF, any suggestions?
Thanks