JSFiddle - React, Tailwind, and code Playground
HTML
<script type="text/javascript" src="http://demos.usejquery.com/cross-domain-ajax-demo/js/jquery.xdomainajax.js"></script>
<script>
$.get('http://google.com', function(res) { //get the html source of this website
var matches = res.responseText.match(/<title>(.*?)<\/title>/);
var spUrlTitle = matches[1];
alert(spUrlTitle);
});
</script>