This method stops window loading.
window.stop()
window.stop();
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 | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of 'Window.stop()' in that specification. | Living Standard | |
HTML5 The definition of 'Window.stop' in that specification. | Recommendation |
The stop() method is not supported by Internet Explorer.
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/window/stop