Sup everyone
I'm trying to find a script that will automatically resize the height of an iframe depending on the document it contains. I found the script here:
The only problem is that although it gets larger when the page changes, it doesn't get smaller. Any one know how to fix this???Code:<!-- function calcHeight() { //find the height of the internal page var the_height= document.getElementById('the_iframe').contentWindow. document.body.scrollHeight; //change the height of the iframe document.getElementById('the_iframe').height= the_height; } //-->



Reply With Quote


Bookmarks