onabort

< svg‎ | events
Jump to: navigation, search

onabort

This article is In Progress.



Needs Summary: This article does not have a summary. Summaries give a brief overview of the topic and are automatically included on some listing pages that link to this article.


Overview Table

Synchronous No
Bubbles No
Target dom/Element
Cancelable No
Default action  ?

Examples

The following code example shows how to handle the onabort event.

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg id="outerSvgElement" width="600px" height="210px" version="1.1" xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"> <!-- Required for xlink usage. -->
  <script type="application/ecmascript">
    function handleAbortEvent(evt) {
      // Handle the abort event here.
    }
 
    window.onload = function() {
      var e = document.documentElement; // Root element is svg
 
      /*
        For the svg element, add an event listener for the onabort event.
        addEventListener parameters: event type, event listener pointer, 'false' = bubbling.
      */
      e.addEventListener('SVGAbort', handleAbortEvent, false);
    }
  </script>
</svg>

Notes

Remarks

The onabort event occurs when page loading is stopped before an element is loaded completely. The target of the event is the svg element. The designated element stops loading. To invoke this event, do one of the following:

  • The user presses the browser's stop button before the element is loaded completely.

Syntax

Standards information

Event handler parameters

pEvt [in]
Type: IDOMUIEventThe IDOMEvent object.

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?

See also

Related pages (MSDN)

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]