1

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.

gwegaweg
  • 33
  • 1
  • 5

2 Answers2

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

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

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

});
andres descalzo
  • 14,887
  • 13
  • 64
  • 115
0

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

Community
  • 1
  • 1
ekhaled
  • 2,930
  • 20
  • 24