Quotes help make search much faster. Example: "Practice Makes Perfect"

Tuesday, May 21, 2013

Codecademy Sample Solution: AJAX



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


This is an example of scrolling text using Javascript.

Popular Posts