ayumee
3/13/2017 - 5:05 PM

jquery get height of iframe content when load

$('iframe').attr({'src':'/***.html'});
$('iframe').load(function(){
	var iframeHeight = $frame.get(0).contentWindow.document.body.scrollHeight + 10;
	$frame.attr('height', iframeHeight + 'px');
});