This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<iframe id="superFrame" src="..." style="width: 100%; border: none;" onload="resizeIframe(this)" scrolling="no"></iframe> | |
<script type="text/javascript"> | |
function resizeIframe(iframe) { | |
if(iframe) { | |
iframe.height = ''; | |
iframe.height = iframe.contentWindow.document.body.scrollHeight + 'px'; | |
} | |
} | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body onLoad="resizeParent();"> | |
<script type="text/javascript"> | |
function resizeParent() { | |
var height = document.getElementsByTagName("html")[0].scrollHeight; | |
window.parent.postMessage(["setIframeHeight", height], "*"); | |
} | |
</script> | |
</body> |