August 1999
Intermediate to advanced
1488 pages
72h 53m
English
window.stop()
The stop() method of the Window object simulates the user clicking the Stop button on the browser. It stops the browser from downloading and rendering the current page.
Listing 7.587 has a button and an image reference to a nonexistent image. The browser will continue to try and download the image until it times out or the download is stopped. Clicking the button will stop the download.
<html> <body> <form> <input type=BUTTON value="Stop" onClick="window.stop()"> </form> <p> <table border=1color= bgcolor="#FF0000"><tr><td> <img src="http://www.purejavascript.com/images/fake.gif" ... |
Read now
Unlock full access