xhr.open method code example
Example: xhr.open method
xhttp.open("GET", "ajax_info.txt", true);
xhttp.send();
//open(method, url, async)
//Specifies the type of request
//method: the type of request: GET or POST
//url: the server (file) location
//async: true (asynchronous) or false (synchronous)