Friday, January 31, 2014

How to load an external website into a div of a html page

Using simple html,

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



Or JQuery,

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


No comments:

Post a Comment