Difference between revisions of "Template:Northeastern Boston/Javascript"

Line 42: Line 42:
 
}
 
}
  
 +
var xhr = new XMLHttpRequest();
 +
xhr.open("GET", "https://www.codecademy.com/", false);
 +
xhr.send();
 +
 +
console.log(xhr.status);
 +
console.log(xhr.statusText);
  
 
changeColor = function(element, color) {
 
changeColor = function(element, color) {

Revision as of 01:02, 23 August 2015