Included below is the code that I am trying to use to display the HTML contents of another page. I am unable to get the code to work and am receiving an error each time. What am I missing here?
$.ajax({
url: 'http://www.msn.com',
type: 'GET',
dataType : "text/html",
success: function (result) {
alert('success');
alert(result);
},
error: function() {
alert('error');
}
});