Created
February 12, 2022 16:17
-
-
Save antondevv/f2405b317d11c8444fe6f140729adba7 to your computer and use it in GitHub Desktop.
old request
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
function reqListener () { | |
alert(this.responseText) | |
} | |
var oReq = new XMLHttpRequest(); | |
oReq.addEventListener("load", reqListener); | |
oReq.open("GET", "https://jsonplaceholder.typicode.com/todos/1"); | |
oReq.send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment