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.
EventHandler that is called whenever the
readyState attribute changes.
DOMString that contains the response to the request as text, or
null if the request was unsuccessful or has not yet been sent.
Returns the serialized URL of the response or the empty string if the URL is null.
Document containing the response to the request, or
null if the request was unsuccessful, has not yet been sent, or cannot be parsed as XML or HTML.
DOMString containing the response string returned by the HTTP server. Unlike
XMLHTTPRequest.status, this includes the entire text of the response message ("
200 OK", for example).
unsigned long representing the number of milliseconds a request can take before automatically being terminated.
Returns all the response headers, separated by CRLF, as a string, or
null if no response has been received.
Returns the string containing the text of the specified header, or
null if either the response has not yet been received or the header doesn't exist in the response.
Overrides the MIME type returned by the server.
Sends the request. If the request is asynchronous (which is the default), this method returns as soon as the request is sent.