I am trying to load another Url into div tag using jquery on click function. But it loads the same page into the div tag.
Below is my code:
Jquery:
function loadPage() {
$('#xterm').load('http://google.com',function () {
alert('Page Loaded');
});
}
HTML:
button:
<button class="btn btn-primary Border" type="button" onclick="loadPage()">
div:
<div class="ScrollStyles1" id="xterm"> </div>
.load(). Look here for info on how to load external URL's: stackoverflow.com/questions/8849668/…