Set iframe content height to auto resize dynamically
In the iframe: So that means you have to add some code in the iframe page. Simply add this script to your code IN THE IFRAME: <body onload=”parent.alertsize(document.body.scrollHeight);”> In the holding page: In the page holding the iframe (in my case with ID=”myiframe”) add a small javascript: <script> function alertsize(pixels){ pixels+=32; document.getElementById(‘myiframe’).style.height=pixels+”px”; } </script> What … Read more