cross-domain-requests-with-jquery

by sarathsprakash

HTML

<script src="https://rawgithub.com/IonicaBizau/jQuery-cross-domain-requests/master/js/jquery.xdomainajax.js"></script>
<div id="targetWrapper"></div>

JavaScript

$.ajax({
     url: 'http://www.yahoo.com', // Or your web page link
    type: 'GET',
    success: function(res) {
      var headline = res.responseText;
      $('body').append(headline);
    }
  });