Skip to content

Instantly share code, notes, and snippets.

@vickonrails
Created November 1, 2017 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vickonrails/1f3ed18e0f7a451af39c68a6a227a4f0 to your computer and use it in GitHub Desktop.
Save vickonrails/1f3ed18e0f7a451af39c68a6a227a4f0 to your computer and use it in GitHub Desktop.
var request = new XMLHttpRequest();
request.onreadsystatechange = handleRequest;
request.open('GET','url',true);
request.send();
function handleRequest(){
console.log(request.responseText);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment