The below code not proper working as i wants, Anyone knowns about this issue why it happening. i want open external website on our website body div .
<html>
<head>
<title></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<a href="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js">jQuery 3.1.1</a>
<style >
#content{height:250;width:500px;}
#content object{height:100%;width:100%;}
</style>
<script >$(document).ready(function(){
$('a').on("click", function(){
event.preventDefault();
// Load External pages.
$("#content").html('<object data="'+this.getAttribute('href')+'" />');
});
});</script>
```Html Code```
<a href="https://www.google.com">Google</a>
<div id="content"></div>
</body>
</html>