Here is how you can resize the iframe height dynamically according to the web page height which is loaded inside the iframe.
Place the following method within the web page which contains the iframe
var Tab1_ = document.getElementById('frame');
Tab1_.height = newHeight;
And on the page, which you wish to load inside the iframe, add the below method so it will call the above method