MrNacer2007 MrNacer2007 - 2 years ago 101
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

Answer Source

Just add height width while creating object:

$("#page1").html('<object width="100%" height="100%" data="">');
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download