EVENT HANDLER:  onAbort


onAbort = myJavaScriptCode

Event handler for Image

The onAbort event handler executes the specified JavaScript code or function on the occurance of an abort event. This is when a user cancels the loading of an image by either clicking stop in the browser or clicking another link before the image has loaded.

The onAbort event handler uses the following Event object properties.

type - this property indicates the type of event.
target - this property indicates the object to which the event was originally sent.

The following example shows the use of the onAbort event handler to alert the user that the 'myPic' image was not loaded.

Code:
<IMG NAME = "myPic" SRC = "images/myPic.gif" onAbort = "alert('Loading of image aborted!')">


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information