$("#iframe")[0].onload = function(){
$("#iframe")[0].style.height = $("#iframe")[0].contentWindow.document.body.offsetHeight + 180 + "px";
}
$("#iframe")[0].onload = function(){
$("#iframe")[0].style.height = $("#iframe")[0].contentWindow.document.body.offsetHeight + 180 + "px";
}