Open In App
Related Articles

HTML | DOM Window stop() Method

Improve Article
Save Article
Like Article

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=

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
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 04 Aug, 2022
Like Article
Save Article
Similar Reads
Related Tutorials