title: How to make get requests with JavaScript?
body: <p>My apologies if this is a trivial question but I couldn't find how to make requests using JavaScript.</p>
  
  <pre><code>var request = new XMLHttpRequest();
  request.open("GET", "http://www.google.com");
  alert(request.status);
  </code></pre>
  
  <p>I get 0, but http statuses should be between 100 and 600. Where am I going wrong?</p>