Advertisement
Guest User

HTTP Request

a guest
Jul 1st, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var xhr = new XMLHttpRequest();
  2. xhr.open("GET", "https://www.codecademy.com/", false);
  3. xhr.send();
  4.  
  5. console.log(xhr.status);
  6. console.log(xhr.statusText);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement