Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.
function QuartelCristao_Biblia_Resize_iframe() {
var height = window.innerWidth; //Firefox
if (document.body.clientHeight) {
height = document.body.clientHeight; //IE
}
document.getElementById("QuartelCristao_Biblia_iframe").style.height = parseInt(height - document.getElementById("QuartelCristao_Biblia_iframe").offsetTop - 8) + "px";
}
window.onresize = QuartelCristao_Biblia_Resize_iframe;
(
function () {
var url = "http://www.quartelcristao.com/js/biblia/style01/Default.aspx?";
var current_location = window.location.hostname;
url += "?" + "idb=" + quartelcristao_idb + "&idl=" + quartelcristao_idl;
document.write("<iframe id='QuartelCristao_Biblia_iframe' width='" + quartelcristao_width + "' height='100%' frameborder=0 onLoad='QuartelCristao_Biblia_Resize_iframe()' src='" + url + "'></iframe>");
})()
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
else check this : http://www.slackcoders.com/2008/03/10/iframe-dynamic-resizing-solved/