I am new to html and javascript and need some help.
So i have a html page that has a button on it. and when i click that button i want it to load the xml document ( and eventually display some sort of information from it).  I don't  know that I am not loading the file correctly. If i comment out the xhttp.send; it will run through. So the line the xttp.send is on is where i am having my problems.
Notes to consider: I am writing in notepad++, the .xml file is in the same directory as my .html file, I am using chrome as a browser.
Thanks in advance
var xhttp;
function functionName(){
    xhttp=new XMLHttpRequest();
    xhttp.open("GET","test.xml", false);
    xhttp.send();
    //xmlDoc=xmlhttp.responseXML; 
    //var temp =  xmlDoc.getElementsByTagName("alerts");
    alert("something");
 }
</script>
 
     
    