Event.ABORT

JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax

Event.ABORT

Description

The ABORT property of the Event object is used by images and refers to the event in which a transfer is interrupted or aborted by a user.

Example

Listing 7.217 shows an example in which an HTML document may have a large .gif file embedded within it, but, during the document loading process, the loading of the .gif file is aborted (by clicking the Stop button in the browser). The captureEvents() method catches the ABORT event and passes it to the handleAbort(), method which handles it accordingly.

Listing 7.217 Using the ABORT Event Property
 <html> <head> <title>Example of Event.ABORT</title> </head> <body> <script language = "JavaScript"> ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.