var req = new XMLHttpRequest();
req.onreadystatechange = function() {
if (req.readyState == 4 && req.status == 200) {
console.log("Success!");
}
};
var url = "http://www.codecademy.com";
// Put your req.open and req.send calls here!
req.open("GET", url, true);
req.send();
No comments:
Post a Comment