145 down vote accepted You can retrieve the height of the IFRAME's content by using: contentWindow.document.body.scrollHeight After the IFRAME is loaded, you can then change the height by doing the following: Then, on the IFRAME tag, you hook up the handler like this: