/ Published in: JavaScript

Resize iframe height. This means if the content of your iframe is longer than the iframe height, and the iframe doesn't have a scrollbar, you can resize the height of the iframe so the content is viewed.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//set the document domain document.domain = 'xxxx.com'; //resize the iframe function parent_resize() { parent.resize_iframe("idofiframe", document.getElementById('wrapper').offsetHeight); } <body onload="parent_resize();"> <div id="wrapper"> ..... </div>
Comments
