XMLHttpRequest
Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing.
Properties
Returns client's state.
Returns response as text.
Returns the response type.
Returns the response as document.
Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
Functions
Acts as if the Content-Type
header value for a response is mime. (It does not change the header.)
Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
Combines a header in author request headers.