Thursday, June 13, 2013

How to make content inside iframe 100% height without scrollbar?

<script language="javascript" type="text/javascript">
  function resizeIframe(obj) {
    obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
  }
</script>
<iframe src="http://google.com/" frameborder="0" scrolling="no" id="iframe" onload='javascript:resizeIframe
(this);' />

No comments:

Post a Comment