Window.stop()
Summary
This method stops window loading.
Syntax
JavaScript
Copy Code
window.stop()
Example
JavaScript
Copy Code
window.stop();
Notes
The stop() method is exactly equivalent to clicking the stop button in the browser. Because of the order in which scripts are loaded, the stop() method cannot stop the document in which it is contained from loading, but it will stop the loading of large images, new windows, and other objects whose loading is deferred.
Specification
Specification | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of 'Window.stop()' in that specification. |
Living Standard |
Compatibility
The stop() method is not supported by Internet Explorer.
License
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/window/stop