Skip to content
Related Articles

Related Articles

HTML | DOM Window stop() Method

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 26 Jul, 2019

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.



Example: Stop window from loading.

<!DOCTYPE html>
        HTML | DOM Window stop() Method
    h1 {
        color: green;
        // Stop window loading.
      The stop() method stops this
      text and the iframe from loading.
    <iframe src=

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!