window.stop() Method in Window Object of Javascript Syntax with Examples
2605 Views
Usage
The stop() mehod is used to stop loading the window.
Syntax
myWindow.stop();
Example
<button onclick="javascript:showwindow();">Stop</button>
var myWindow = window.open("http://www.knowledgewalls.com","","width=800,height=300");
function showwindow(){
myWindow.stop();
}
Output
Once we run the run, it will display the webpage.We can use "stop" button to stop loading the window.