I just want to get the contents of an iframe on my page. My iframe is defined like:
<iframe id = "e_body" name = "e_body" src="about:blank"></iframe>
Now I have a function where I want to get the inner contents of the frame, whatever the user has typed in there:
var strContents = document.getElementById("e_body").document.body.innerHTML;
alert("the contents are: " + strContents);
But getting the content always fails, how can I get it?