var iframe= $("#iframe")
var h = iframe.height();
iframe.height($("#iframe").contents().find("body").height()+100)
<iframe id="iframe" onLoad="iFrameHeight();return false;" src="'+link+'" style="width: '+width+'px !important;height:100%;" scrolling="no" frameborder="0"></iframe>