Dynamic Height for IFrame based on it's content

jQuery(document).ready(function() {
  jQuery('iframe').load(function() {
    jQuery(this).height(jQuery(this).contents().outerHeight());
  });
});