Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function resizeIframe(obj) {
- obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
- }
- <iframe src="..." frameborder="0" scrolling="no" onload="resizeIframe(this)" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement