xhr= new XMLHttpRequest(); //creates a new XMLHttpRequest xhr.open("GET", "file.txt", false); xhr.send(); // the request is sent responsee = (xhr.res