MrNacer2007 MrNacer2007 - 5 months ago 15
Javascript Question

jquery: loading html page inside a div

I'm loading an html page inside a div using:

$("#page1").html('<object data="http://stackoverflow.com/">');


the problem is that the loaded page is very small in display: the div is
500*500px
but the page inside of it is only
100*100px
, no matter what i do.

please help me solve this
thank you

Answer

Just add height width while creating object:

$("#page1").html('<object width="100%" height="100%" data="http://stackoverflow.com/">');