Created
August 11, 2014 13:59
-
-
Save hofiorg/97041bd82ef9b1a7e813 to your computer and use it in GitHub Desktop.
javascript - httpGet
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 httpGet(url) { | |
var xmlHttp = new XMLHttpRequest(); | |
xmlHttp.open( "GET", url, false ); | |
xmlHttp.send( null ); | |
return xmlHttp.responseText; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment