Latest web development tutorials

onabort event

Event Object Reference Event objects

Examples

When the image is loaded to suspend implementation of JavaScript:

<Img src = "image_w3default.gif" onabort = "myFunction ()">


Definition and Usage

onabort event trigger in the user aborted load <img> or <input type = "image"> element when.


Browser Support

event
onabort not support Yes not support not support not support


grammar

In HTML:

<Elementonabort = "myScript">

In JavaScript:

object .onabort = function () {myScript };

JavaScript, use the addEventListener () method:

object .addEventListener ( "abort", myScript );

Note: Internet Explorer 8 and earlier versions of IE do not support addEventListener () method.


technical details

Whether to support the bubble: Yes
It can be canceled: No
Event Type: If the user interface is generated UIEvent, otherwise Event.
Supported HTML tags: All HTML elements except: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title>

Event Object Reference Event objects