XMLHttpRequest (XHR) is a JavaScript API that allows you to create HTTP requests. It’s commonly used to send network requests between a web browser and a server. With XHR, you can:
- Update a web page without reloading it.
- Request data from a server after the page has loaded.
- Receive data from a server after the page has loaded.
- Send data to a server in the background