You are here: Reference > JavaScript > client-side > HTML DOM > methods > stop (window)

stop method (window)

Browser support:
Stops the loading of the document's content. Same as clicking on the browser's stop button.
The stop method is able to halt the loading process of a document. It is useful if the loading of an image or a document in a frame takes too long.


object.stop ( );
You can find the related objects in the Supported by objects section below.

Return value:

This method has no return value.

Example HTML code 1:

This example shows how to stop the document loading:
    <script type="text/javascript">
        window.stop ();
    This text isn't rendered
Did you find this example helpful? yes no

Supported by objects:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content