onabort Event
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
© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View