HTML | DOM Window stop() Method
The stop() method in DOM is used to stop the window from loading resources in the current browsing context, similar to the browser’s stop button.
Syntax:
window.stop()
Example: Stop window from loading.
<!DOCTYPE html> <html> <head> <title> HTML | DOM Window stop() Method </title> </head> <style> h1 { color: green; } </style> <head> <script> // Stop window loading. window.stop(); </script> </head> <body> <h1>GeeksforGeeks</h1> <p> The stop() method stops this text and the iframe from loading. </p> <iframe src= </iframe> </body> </html> |
chevron_right
filter_none
Output:
Without window.stop() method:

With window.stop() method:

Supported Browsers: The browser supported by DOM Window stop() Method are listed below:
- Google Chrome
- Firefox
- Opera
- Safari
Recommended Posts:
- HTML | Window scrollBy() method
- HTML | Window resizeBy() Method
- HTML | DOM Window btoa() Method
- HTML | Window atob( ) Method
- HTML | Window alert( ) Method
- HTML | Window moveBy() Method
- HTML | Window resizeTo() Method
- HTML | Window createPopup() Method
- HTML | Window moveTo() Method
- Javascript | Window Blur() and Window Focus() Method
- HTML | Window self( ) Property
- HTML | Window top( ) Property
- HTML | Window name Property
- HTML | DOM Window frameElement Properties
- HTML | DOM Window opener Properties
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



