MrNacer2007 MrNacer2007 - 10 months ago 44
Javascript Question

jquery: loading html page inside a div

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

$("#page1").html('<object data="">');

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

please help me solve this
thank you


Just add height width while creating object:

$("#page1").html('<object width="100%" height="100%" data="">');