Last active
December 25, 2020 11:49
-
-
Save Shakil-Shahadat/3848a54eba244d0d7560 to your computer and use it in GitHub Desktop.
IE10+ [ Obsolete, use fetch instead ]
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
let http = new XMLHttpRequest(); | |
http.open( 'GET', 'get.php' ); | |
http.send(); | |
http.onreadystatechange = function() | |
{ | |
if ( http.readyState == 4 && http.status == 200 ) | |
{ | |
console.log( http.responseText ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment