Created
June 30, 2020 16:02
-
-
Save hperantunes/938f9ee5a28da9a744355c194e624b2f 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 request = new XMLHttpRequest(); | |
request.open('GET', '/bar/foo.txt', false); // `false` makes the request synchronous | |
request.send(null); | |
if (request.status === 200) { | |
console.log(request.responseText); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment