[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ja/docs/Web/API/XMLHttpRequest/response [Back]  [Original]

XMLHttpRequest: response - Web API | MDN

MDN Web Docs

View in English Always switch to English

XMLHttpRequest: response

Baseline

20157

:

XMLHttpRequest response ArrayBufferBlobDocumentJavaScript Object responseType

responseType open() send() responseType

null "text" ("") LOADING readyState (3)

load() XMLHttpRequest readystatechange readyState DONE (4) response load()

responseType

js
const url = "somePage.html"; // 

function load(url, callback) {
  const xhr = new XMLHttpRequest();

  xhr.onreadystatechange = () => {
    if (xhr.readyState === 4) {
      callback(xhr.response);
    }
  };

  xhr.open("GET", url, true);
  xhr.send("");
}

XMLHttpRequest
# the-response-attribute


Web Proxy Viewer  |  New URL  |  Original Page