Created
March 2, 2020 07:53
-
-
Save aamsur-mkt/a6cf5da5817412ad5904877263478ac0 to your computer and use it in GitHub Desktop.
Simple js http request
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 theUrl = "https://google.co.id"; | |
var xmlHttp = new XMLHttpRequest(); | |
xmlHttp.open( "GET", theUrl, false ); | |
xmlHttp.send( null ); | |
alert(xmlHttp.responseText); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment