onabort Property

Sets or returns a Variant that represents the value of the onabort attribute that is the script when the onabort event fires.

expression.onabort

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Example

The following example sets the onabort attribute for the first IMG element in the active document.

Dim objImage As FPHTMLImg
    
Set objImage = ActiveDocument.body.all.tags("img").Item(0)
    
objImage.onabort = "script()"

Applies to | FPHTMLImg Object | FPHTMLInputImage Object | IHTMLImgElement Object | IHTMLInputImage Object