Created
April 28, 2018 16:46
-
-
Save twhitt14/c0690255846bf629bdc61deabd1ee784 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 url = ''; | |
function callback() { | |
console.log(this.responseText); | |
} | |
var xhr = new XMLHttpRequest(); | |
xhr.addEventListener("load", callback); | |
xhr.open("GET", url); | |
xhr.send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment