I used the solution stated on this page to resize the iFrame depending on the content:

[Resizing an iframe based on content](https://stackoverflow.com/questions/153152/resizing-an-iframe-based-on-content)

And it works perfectly, except in Firefox. In Firefox, the other content is cut-off but once you keep on refreshing the page, the browser will slowly reveal the rest of the content. I saw someone replied that this is the solution to the problem:

> 
> Use jQuery to get the body height in
>  framed.html (FF issue, body kept
>  growing): var height =
>  $(document.body).height();
> 
> 
> 

However, I don't know where to put that line of code. Do I insert it somewhere within the 3 snippets of scripts on the original solution? If so, where do I put it?