Question: I have a `<div id="content">`. I want to load the content from <http://vietduc24h.com> into my `div`: 

```
<html>
<head>
<script type="text/javascript">
    $(document).ready(function()
    {
        $("#content").attr("src","http://vietduc24h.com");
    })
</script>
</head>
<body>
    <div id="content"></div>
</body>
</html

```

I don't want to use an iframe. How can I do this?

Answer: 
Try this code with the jQuery `Load` function:

```
$('#content').load('http://vietduc24h.com', function() {
  alert('Load was performed.');
});

```

If you encounter in security issues because of the Cross-Origin-Resource-Sharing policy than you have to use a proxy in your server code.
Try this:

```
  $("#content").html('<object data="http://vietduc24h.com">');

```

Taken from [this answer](https://stackoverflow.com/a/9964050/646668).