Window stop() method

Definition and usage

stop() Method to stop window loading.

stop() The method is the same as clicking the stop button in the browser.

Tip:If the loading time is too long, you can use stop() Method to stop loading images.

Instance

Stop loading the window:

window.stop();

Try It Yourself

Syntax

window.stop()

Parameter

None.

Return Value

None.

Browser Support

All modern browsers support window.stop():

Chrome IE Edge Firefox Safari
Chrome Edge Firefox Safari Opera
Supported Supported Supported Supported Supported

Internet Explorer 11 (or earlier versions) does not support window.stop().