Skip to content

Instantly share code, notes, and snippets.

@desg
Created April 28, 2014 22:24
Show Gist options
  • Save desg/11385799 to your computer and use it in GitHub Desktop.
Save desg/11385799 to your computer and use it in GitHub Desktop.
why does this return nothing?
function swag()
{
var req = new XMLHttpRequest();
req.open('GET', "http://www.google.com/", true);
req.send(null);
alert(req.responseText);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment