Javascript Browser Window stop() Method

Introduction

Stop the window from loading:

View in separate window

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

</body>
</html>

The stop() method stops window loading.

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

This method may be useful if the loading of an image or frame takes too long.

window.stop();



PreviousNext

Related