Reputation: 33
I need to create a frameborder=0
iframe with no scroll bars.
It needs to automatically resize its width based on the browser window's current width.
Its height needs to be based on the document.length
. So if it's a long page, the iframe needs to stretch way down.
This way, there is no scrollbar created in the iframe.
Upvotes: 1
Views: 4523
Reputation: 14967
var myIframe = $(document.frames['idIframe']);
$(document).bind('resize', function() {
myIframe.attr("width", $(this).width());
myIframe.attr("height", $(this).height());
});
Upvotes: 1