---
title: XHR (XMLHttpRequest)
slug: Glossary/XHR_(XMLHttpRequest)
tags:
  - API
  - Beginner
  - CodingScripting
  - Glossary
  - XMLHttpRequest
---
{{domxref("XMLHttpRequest")}} (XHR) is a {{Glossary("JavaScript")}} {{Glossary("API")}} to create {{Glossary("AJAX")}} requests. Its methods provide the ability to send network requests between the {{Glossary("browser")}} and a {{Glossary("server")}}.

## See also

- {{interwiki("wikipedia", "XMLHttpRequest")}} on Wikipedia
- [Synchronous vs. Asynchronous Communications](https://peoplesofttutorial.com/difference-between-synchronous-and-asynchronous-messaging/)
- The {{domxref("XMLHttpRequest")}} object
- The [documentation on MDN about how to use XMLHttpRequest](/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest)
