Skip to content

Instantly share code, notes, and snippets.

@hackerxian
Created December 11, 2015 03:21
Show Gist options
  • Save hackerxian/52514280e183f62ff8d2 to your computer and use it in GitHub Desktop.
Save hackerxian/52514280e183f62ff8d2 to your computer and use it in GitHub Desktop.
resize iframe
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