This article needs a technical review. How you can help.
Draft
This page is not complete.
The XMLHttpRequest.abort() method aborts the request if it has already been sent. When a request is aborted, its readyState is set to 0
(UNSENT
), but the readystatechange event is not fired.
ExampleEdit
var xhr = new XMLHttpRequest(),
method = "GET",
url = "https://developer.mozilla.org/";
xhr.open(method,url,true);
xhr.send();
xhr.abort();
SpecificationsEdit
Specification | Status | Comment |
---|---|---|
XMLHttpRequest | Living Standard | WHATWG living standard |
Browser compatibilityEdit
[1] This feature was implemented via ActiveXObject(). Internet Explorer implements the standard XMLHttpRequest since version 7.
Document Tags and Contributors
Tags:
Contributors to this page:
jbankester,
jsx
Last updated by:
jbankester,