The onabort event occurs when the loading of an audio/video is aborted.
Bubbles: | No |
---|---|
Cancelable: | No |
Event type: | UiEvent if generated from a user interface, Event otherwise. |
Supported HTML tags: | <audio> and <video> |
In JavaScript:
object.onabort = function(){
myScript};
In JavaScript, using the addEventListener()
method:
object.addEventListener("abort",
myScript);