Quantcast
Channel: Resizing an iframe based on content - Stack Overflow
Viewing all articles
Browse latest Browse all 28

Answer by Omer Arshad for Resizing an iframe based on content

$
0
0

The simplest way using jQuery:

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

Viewing all articles
Browse latest Browse all 28

Trending Articles