• The name of the object is XMLHttpRequest for compatibility with the Web, though each component of this name is potentially misleading.
  • The type of request is dictated by the optional async argument (the third argument) that is set on the XMLHttpRequest.open() method.
  • Need to remember, XMLHttpRequest is an ASYNCHRONOUS process, so it can allow you to access the page while we are requesting data from the web-server.
  • XMLHttpRequest is a built-in browser object that allows to make HTTP requests in JavaScript.
  • The onreadystatechange property specifies a function to be executed every time the status of the XMLHttpRequest object changes
  • XMLHttpRequest (XHR) objects are used to interact with servers.
  • const btn = document.getElementById('btn') const request = new XMLHttpRequest().
  • XMLHttpRequest (XHR) is an API in the form of a JavaScript object whose methods transmit HTTP requests from a web browser to a web server.
  • XMLHttpRequest makes sure you can get data without a full page refresh on the browser.