I'm using an iframe
on my webpage. I need the set the height of the iframe
dynamically, according to the content. I'm using the following code to achieve this.
$('iframe').on('load',function(){
$('iframe').attr('id','sop_iframe');
$('#sop_iframe').height($('#sop_iframe').contents().height())
});
This works perfectly in chrome.. but not on firefox and IE. Is there any cross browser jquery solution??