window.stop() stops further resource loading in the current browsing context — equivalent to the browser’s Stop button (MDN). No parameters; returns undefined.
Pass the required arguments shown below. Check return values and browser support before you rely on the result.
Syntax
Call window.stop. Start with this line.
JavaScript
stop() / window.stop()
Call
What it does
stop() / window.stop()
Primary signature.
window.stop(...)
Call with the arguments your case needs.
Built into the browser. Call window.stop(...) (or the global stop(...)) — no import required.
Library declarations
JavaScript
stop() / window.stop()
Parameters
This member has no parameters beyond those shown in the signature.
Return Value
Return Value
Description
*
Always undefined
JavaScript Examples
Example 1 — Basic Call
MDN: call window.stop() with no arguments.
JavaScript
window.stop();
// same as: stop();
console.log("stop() called");
stop() = document loading
pause() = media
abort() = fetch
How It Works
stop(). Browser resource loading in this context.
pause(). Media element playback only.
abort(). Cancel a specific network request.
Choose. Match the API to the problem.
Compatibility
Browser Support
Window.stop() is marked Baseline Widely available on MDN (since August 2016). It is not Deprecated, Experimental, or Non-standard. Browser Window API — not a Node.js built-in.
✓ Baseline · Widely available
stop()
Stop further resource loading like the browser Stop button.
99%Core tag support
ChromeYes
Full support
EdgeYes
Full support
FirefoxYes
Full support
SafariYes
Full support
OperaYes
Full support
HTML element100% supported
Bottom line: Universal API. Most useful while resources are still downloading; pair with clear UX feedback.
Frequently Asked Questions
It stops further resource loading in the current browsing context — equivalent to the browser’s Stop button (MDN). Content already shown usually stays; pending images and similar loads can be halted.
No. MDN marks Window.stop() as Baseline Widely available (since August 2016). It is not Deprecated, Experimental, or Non-standard.
No parameters. Call stop() with empty parentheses. The return value is undefined.
MDN: because of how scripts run, stop() cannot interrupt its parent document’s loading, but it can stop images, new windows, and other still-loading objects.
No. stop() is for document resource loading. To pause media, use element.pause(). To cancel fetch(), use AbortController.
While a page is still loading — for example a Cancel button for slow images or a navigation the user wants to abort. After load finishes, it usually has little effect on later fetch() calls.