如何将外部网页加载到html页面的div中

我需要在我的HTML页面中加载一个响应式网站到div而不使用iframe元素。

我试过这个链接 ; 它正在为脚本中提到的单页url工作。

 $('#mydiv').load('http://localhost/qa/ask#external-div', function(response, status, xhr) { if (status == "error") { var msg = "Sorry but there was an error: "; alert(msg + xhr.status + " " + xhr.statusText); } }); 

使用简单的HTML,

  <div> <object type="text/html" data="http://validator.w3.org/" width="800px" height="600px" style="overflow:auto;border:5px ridge blue"> </object> </div> 

或者jquery,

 <script> $("#mydiv") .html('<object data="http://your-website-domain"/>'); </script> 

JSFIDDLE DEMO