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.

Syntax:

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:
<head>
    <script type="text/javascript">
        window.stop ();
    </script>
</head>
<body>
    This text isn't rendered
</body>
Did you find this example helpful? yes no

Supported by objects:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content