onstop event | stop event
Occurs when the user aborts the loading of the document.
If an onstop event occurs, the onload event is not fired on the document.
How to register:
This event cannot be registered in HTML.
|object.onstop = handler;|
|object.addEventListener ("stop", handler, useCapture);|
|object.attachEvent ("onstop", handler);|
You can find the related objects in the Supported by objects section below.
The event object is accessible to all event handlers in all browsers. The properties of the event object contain additional information about the current event. To get further details about these properties and the possible event handler registration methods, please see the page for the event object.
Actions that invoke the onstop event:
- Clicking on the browser's STOP button or pressing ESC while the page is loading.
- Navigating to another page while the page is loading.
The order of events related to the onstop event:
|Clicking on the browser's STOP button or pressing ESC while the page is loading.||
|Navigating to another page while the page is loading.||
Example HTML code 1:
This example illustrates the use of the onstop event:
Did you find this example helpful?
Supported by objects:
User Contributed Comments