onabort Event

Fires when the user aborts the download of an image.

Syntax

Inline HTML<ELEMENT onabort = "handler" ... > All platforms
Event propertyobject.onabort = handlerJScript only
object.onabort = GetRef("handler")Visual Basic Scripting Edition (VBScript) 5.0 or later only
Named script <SCRIPT FOR = object EVENT = onabort> Internet Explorer only

Event Information

BubblesNo
CancelsYes
To invoke
  • Click an anchor.
  • Click the browser Stop button.
  • Navigate to another page.
Default action Halts downloading of the designated image.

Event Object Properties

Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query the event object for the following event properties.

Available Properties

altKey Retrieves a value that indicates the state of the ALT key.
altLeft Retrieves a value that indicates the state of the left ALT key.
ctrlLeft Sets or retrieves the state of the left CTRL key.
returnValue Sets or retrieves the return value from the event.
shiftLeft Retrieves the state of the left SHIFT key.
srcElement Sets or retrieves the object that fired the event.
type Sets or retrieves the event name from the event object.

Standards Information

There is no public standard that applies to this event.

Applies To

IMG, INPUT type=image, INPUT type=text, HTMLImageElement Constructor, HTMLInputElement Constructor
Tags :


Page view tracker