Window stop() Method - Javascript Browser Object Model

Javascript examples for Browser Object Model:Window stop

Description

The stop() method stops window loading which is the same as clicking on the browser's stop button.

Parameters

None

Return Value:

No return value

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

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<script>
window.stop();/* w  w w  .j ava2 s .c o  m*/
</script>
</head>
<body>

<iframe src="http://www.java2s.com"></iframe>

</body>
</html>

Related Tutorials