Quantcast
Viewing latest article 12
Browse Latest Browse All 28

Answer by YellowGlue for Resizing an iframe based on content

get iframe content height then give it to this iframe

 var iframes = document.getElementsByTagName("iframe"); for(var i = 0, len = iframes.length; i<len; i++){      window.frames[i].onload = function(_i){           return function(){                     iframes[_i].style.height = window.frames[_i].document.body.scrollHeight +"px";                     }      }(i); }

Viewing latest article 12
Browse Latest Browse All 28

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>