jquery -dynamic iframe height

Below is the example  to resize the height of the parent iframe so that it doesn’t show a scrollbar.

$(function () {
var docHeight = $(document).height();
$('#myIframe', window.parent.document).height(docHeight);
});
Share this nice post:

One thought on “jquery -dynamic iframe height

Comments are closed.