Quantcast
Viewing latest article 15
Browse Latest Browse All 28

Answer by Omer Arshad for Resizing an iframe based on content

The simplest way using jQuery:

$("iframe").attr({"scrolling": "no", "src":"http://www.someotherlink.com/"}).load(function() {    $(this).css("height", $(this).contents().height() +"px");});

Viewing latest article 15
Browse Latest Browse All 28

Trending Articles