loading a webpage into a div-not getting loaded <p>I'm trying to load a webpage into a div...But It's not getting loaded into the div...instead it's loading as a whole webpage....why??</p> <pre><code>&lt;li&gt;&lt;a href="#" onClick="AboutUs();"&gt;About&amp;nbsp;Us&lt;/a&gt;&lt;/li&gt; &lt;div class="bdy"&gt;&lt;/div&gt; </code></pre> <p>javascript code:</p> <pre><code>function AboutUs () { // body... //$('.bdy').load('http://www.jhsoftech.com' ); $('.bdy').html('&lt;object style="width:100%;height:435px;" data="http://www.erail.in"&gt;'); } </code></pre>