Dynamic Height for IFrame based on it's content

Submitted by leopathu on Sun, 05/08/2022 - 13:31
jquery
jQuery(document).ready(function() {
  jQuery('iframe').load(function() {
    jQuery(this).height(jQuery(this).contents().outerHeight());
  });
});
Tags