HBCMS更多的中文手册参考:

onabort Event

DHTML文档教程

Fires when the user aborts the download of an image.

dhtml语法

Inline HTML<IMG onabort = "handler" ... > All platforms
Event propertyIMG.onabort = handlerJScript only
IMG.onabort = GetRef("handler")Visual Basic Scripting Edition (VBScript) 5.0 or later only
Named script <SCRIPT FOR = IMG 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 an event object for data.

available properties

altKey Sets or retrieves a value that indicates the state of the ALT key.
altLeft Sets or 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.

是否符合公共标准

There is no public standard that applies to this event.

Applies To

IMG