Created
December 11, 2015 03:21
-
-
Save hackerxian/52514280e183f62ff8d2 to your computer and use it in GitHub Desktop.
resize iframe
This file contains 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
function resizeIframe(obj) { | |
obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment