Javascript Reference - Window stop() Method








The stop() method stops window loading.

This method is the same as clicking on the browser's stop button.

Browser Support

stop Yes No Yes Yes Yes

Syntax

window.stop()

Parameters

None.

Return Value

No return value.





Example

The following code shows how to Stop the window from loading.


<!DOCTYPE html>
<html>
<head>
<script>
window.stop();<!--   w w  w .j  a v a  2 s .  com-->
</script>
</head>
<body>
<iframe src="http://www.example.com"></iframe>
</body>
</html>

The code above is rendered as follows: