Wednesday, 12 February 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>


Share:

No comments:

Post a Comment