| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/API/XMLHttpRequest/response | [Back] [Original] |
Get to know MDN better
XMLHttpRequest response ArrayBufferBlobDocumentJavaScript Object responseType
responseType open() send() responseType
null "text" ("") LOADING readyState (3)
load() XMLHttpRequest readystatechange readyState DONE (4) response load()
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 |
XMLHttpRequest| Web Proxy Viewer | New URL | Original Page |