title: w3schools AJAX example
body: <p>What would I need to do to get this example running on my machine?</p>
  
  <p><s><a href="http://www.w3schools.com/ajax/tryit.asp?filename=tryajax_httprequest_js" rel="nofollow noreferrer">http://www.w3schools.com/ajax/tryit.asp?filename=tryajax_httprequest_js</a></s> <em>(page no longer available)</em></p>
  
  <p>I'm looking to access the XML file hosted on w3schools (and not move it to my machine), but run the HTML and Javascript code on my machine. I tried changing the third to last line from:</p>
  
  <pre><code>&lt;button onclick="loadXMLDoc('note.xml')"&gt;Get XML&lt;/button&gt;
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>&lt;button onclick="loadXMLDoc('http://www.w3schools.com/ajax/note.xml')"&gt;Get XML&lt;/button&gt;
  </code></pre>
  
  <p>thinking this would make it work, but it didn't seem to help. Any suggestions?</p>