W3cubDocs

/Web APIs

AbortSignal: aborted property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨April 2018⁩.

Note: This feature is available in Web Workers.

The aborted read-only property returns a value that indicates whether the asynchronous operations the signal is communicating with are aborted (true) or not (false).

Value

true (aborted) or false

Examples

In the following snippet, we create a new AbortController object, and get its AbortSignal (available using the signal property). Later on, using the aborted property, we check whether or not the signal has been aborted, and send an appropriate log to the console.

const controller = new AbortController();
const signal = controller.signal;

// …

if (signal.aborted) {
  console.log("Request has been aborted");
} else {
  console.log("Request not aborted");
}

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
aborted 66 16 57 53 11.1 66 57 47 11.3 9.0 66 11.3

See also

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/aborted