Set iFrame height from content
var body = document.body,
html = document.documentElement;
var iframe_content_height = Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight)+20;
window.parent.document.getElementById('iframe_id').height = iframe_content_height+'px';
Comments