Created
November 1, 2017 15:59
-
-
Save vickonrails/1f3ed18e0f7a451af39c68a6a227a4f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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