The stop()
method stops window loading.
This method is the same as clicking on the browser's stop button.
stop |
Yes | No | Yes | Yes | Yes |
window.stop()
None.
No return value.
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: