The abort
event is fired when page loading is stopped before an SVG element has been allowed to load completely. This basically implements the standard abort
DOM event.
Bubbles | No |
---|---|
Cancelable | No |
Interface | SVGEvent |
Event handler property | onabort |
Examples
svgElem.addEventListener('abort', () => { console.log('Load aborted.'); })
Specifications
Not really described anywhere specifically, but mentioned in the SVG 2 spec.
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
abort event | Chrome ? | Edge ? | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
Legend
- Compatibility unknown
- Compatibility unknown