Created
December 19, 2019 16:33
-
-
Save BMU-Verlag/4ad658a6595298412708cdf6289cc560 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 xhttp = new XMLHttpRequest(); | |
xhttp.onreadystatechange = function() { | |
if (this.readyState == 4 && this.status == 200) { | |
// Do something with the result | |
} else { | |
// Handle error | |
} | |
}; | |
xhttp.open("GET", url, true); | |
xhttp.send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment