Skip to content

Instantly share code, notes, and snippets.

@Shakil-Shahadat
Last active December 25, 2020 11:49
Show Gist options
  • Save Shakil-Shahadat/3848a54eba244d0d7560 to your computer and use it in GitHub Desktop.
Save Shakil-Shahadat/3848a54eba244d0d7560 to your computer and use it in GitHub Desktop.
IE10+ [ Obsolete, use fetch instead ]
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