views:

442

answers:

2

i need to create a frameborder=0 iframe with no scroll bars.

it needs to automatically resize it's width basedon the browser window's current width.

its height needs to be based on the document.length. so if its a long page, iframe needs to stretch way down.

this way, there is no scrollbar created in teh iframe.

+1  A: 
var myIframe = $(document.frames['idIframe']);

$(document).bind('resize', function() {

   myIframe.attr("width", $(this).width());
   myIframe.attr("height", $(this).height());

});
andres descalzo
A: 

This question here may have the answer you are looking for...

pǝlɐɥʞ