HTML | DOM Window stop() Method (original) (raw)
Last Updated : 11 Jul, 2025
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.
html `
HTML | DOM Window stop() MethodGeeksforGeeks
The stop() method stops this text and the iframe from loading.
<iframe src=
"https://www.geeksforgeeks.org/
</iframe>
`
Output: Without window.stop() method:
With window.stop() method:
Supported Browsers: The browser supported by DOM Window stop() Method are listed below:
- Google Chrome 1
- Edge 14
- Firefox 1
- Opera 12.1
- Safari 3