I have an IFrame on a page which shows textual content and am trying to resize the IFrame based on the content. I have managed to acheive that but then the outer scrollbar for the page will not scroll to the bottom of the article! And also my print function will not display the content in the IFrame.

So I was trying to put the text into a div by using the following code:



The problem is that the code for sContent returns the text(code) for the parent page and not the text(code) nested in the IFrame so it ends up putting my left navigation bar into the div instead of the textual content! I have also tried using:

sContent=window.frames["ArticleFrame"].document.body.innerHTML but then sContent value is blank.

Any ideas or suggestions?