Skip to content

Instantly share code, notes, and snippets.

@tomvangoethem
Last active August 29, 2015 13:57
Show Gist options
  • Save tomvangoethem/9911694 to your computer and use it in GitHub Desktop.
Save tomvangoethem/9911694 to your computer and use it in GitHub Desktop.
alert(document.domain);
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
alert(xmlhttp.responseText);
}
}
xmlhttp.open("GET","http://rawgithub.com",true);
xmlhttp.send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment