August 1999
Intermediate to advanced
1488 pages
72h 53m
English
Event.ABORT
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.
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.
<html> <head> <title>Example of Event.ABORT</title> </head> <body> <script language = "JavaScript"> ... |
Read now
Unlock full access