How can I run this example on my local machine?
http://www.w3schools.com/ajax/tryit.asp?filename=tryajax_httprequest_js (page no longer available)
I want to access the XML file hosted on w3schools without moving it to my machine. Can I run the HTML and JavaScript code locally? I attempted changing the third to last line from:
<button onclick="loadXMLDoc('note.xml')">Get XML</button>
to:
<button onclick="loadXMLDoc('http://www.w3schools.com/ajax/note.xml')">Get XML</button>
I thought this change would make it work, but it doesn't seem to be helping. Any suggestions?