SVG 1.2 - 27 October 2004
Event Identifier {event-namespace, event-localname} |
Description | DOM3 event category | Event attribute name |
---|---|---|---|
{"http://www.w3.org/2001/xml-events", "DOMFocusIn"} SVG 1.2 alias: {"http://www.w3.org/2001/xml-events", "focusin"} (see Notes below). |
Occurs when an element receives keyboard focus. | UIEvent | onfocusin |
{"http://www.w3.org/2001/xml-events", "DOMFocusOut"} SVG 1.2 alias: {"http://www.w3.org/2001/xml-events", "focusout"} (see Notes below). |
Occurs when an element loses keyboard focus. | UIEvent | onfocusout |
{"http://www.w3.org/2001/xml-events", "DOMActivate"} SVG 1.2 alias: {"http://www.w3.org/2001/xml-events", "activate"} (see Notes below). |
Occurs when an element is activated, for instance, thru a mouse click or a keypress. A numerical argument is provided to give an indication of the type of activation that occurs: 1 for a simple activation (e.g. a simple click or Enter), 2 for hyperactivation (for instance a double click or Shift Enter). | UIEvent | onactivate |
{"http://www.w3.org/2001/xml-events", "click"} | Occurs when the pointing device button is clicked over
an element. A click is defined as a mousedown and mouseup
over the same screen location. The sequence of these events
is: mousedown , mouseup ,
click . If multiple clicks occur at the same
screen location, the sequence repeats with the
detail attribute incrementing with each
repetition. |
MouseEvent | onclick |
{"http://www.w3.org/2001/xml-events", "mousedown"} | Occurs when the pointing device button is pressed over an element. | MouseEvent | onmousedown |
{"http://www.w3.org/2001/xml-events", "mouseup"} | Occurs when the pointing device button is released over an element. | MouseEvent | onmouseup |
{"http://www.w3.org/2001/xml-events", "mouseover"} | Occurs when the pointing device is moved onto an element. | MouseEvent | onmouseover |
{"http://www.w3.org/2001/xml-events", "mousemove"} | Occurs when the pointing device is moved while it is over an element. | MouseEvent | onmousemove |
{"http://www.w3.org/2001/xml-events", "mouseout"} | Occurs when the pointing device is moved away from an element. | MouseEvent | onmouseout |
{"http://www.w3.org/2001/xml-events", "textInput"} | One or more characters have been entered. | TextEvent | none |
{"http://www.w3.org/2001/xml-events", "keydown"} | A key is pressed down. (The normative definition of this event is the description in the DOM3 Events specification.) | KeyboardEvent | none |
{"http://www.w3.org/2001/xml-events", "keyup"} | A key is released. (The normative definition of this event is the description in the DOM3 Events specification.) | KeyboardEvent | none |
{"http://www.w3.org/2001/xml-events", "DOMSubtreeModified"} | This is a general event for notification of all changes to the document. (The normative definition of this event is the description in the DOM3 Events specification.) | MutationEvent | none |
{"http://www.w3.org/2001/xml-events", "DOMNodeInserted"} | Fired when a node has been added as a child of another node. (The normative definition of this event is the description in the DOM3 Events specification.) | MutationEvent | none |
{"http://www.w3.org/2001/xml-events", "DOMNodeRemoved"} | Fired when a node is being removed from another node. (The normative definition of this event is the description in the DOM3 Events specification.) | MutationEvent | none |
{"http://www.w3.org/2001/xml-events", "DOMNodeRemovedFromDocument"} | Fired when a node is being removed from a document, either through direct removal of the Node or removal of a subtree in which it is contained. (The normative definition of this event is the description in the DOM3 Events specification.) | MutationEvent | none |
{"http://www.w3.org/2001/xml-events", "DOMNodeInsertedIntoDocument"} | Fired when a node is being inserted into a document, either through direct insertion of the Node or insertion of a subtree in which it is contained. (The normative definition of this event is the description in the DOM3 Events specification.) | MutationEvent | none |
{"http://www.w3.org/2001/xml-events", "DOMAttrModified"} | Fired after an attribute has been modified on a node. (The normative definition of this event is the description in the DOM3 Events specification.) | MutationEvent | none |
{"http://www.w3.org/2001/xml-events", "DOMCharacterDataModified"} | Fired after CharacterData within a node has been modified but the node itself has not been inserted or deleted. (The normative definition of this event is the description in the DOM3 Events specification.) | MutationEvent | none |
{"http://www.w3.org/2001/xml-events", "DOMElementNameChanged"} | Occurs after the namespaceURI and/or the nodeName of an Element node have been modified (e.g., the element was renamed using Document.renameNode()). (The normative definition of this event is the description in the DOM3 Events specification.) | MutationNameEvent | none |
{"http://www.w3.org/2001/xml-events", "DOMAttributeNameChanged"} | Occurs after the namespaceURI and/or the nodeName of a Attr node have been modified (e.g., the attribute was renamed using Document.renameNode). (The normative definition of this event is the description in the DOM3 Events specification.) | MutationNameEvent | none |
{"http://www.w3.org/2001/xml-events", "load"} Deprecated backwards-compatibility alias: {"http://www.w3.org/2001/xml-events", "SVGLoad"} (see Notes below). |
The event is triggered at the point at which the user agent has fully parsed the element and its descendants and is ready to act appropriately upon that element, such as being ready to render the element to the target device. Referenced external resources that are required must be loaded, parsed and ready to render before the event is triggered. Optional external resources are not required to be ready for the event to be triggered. | HTMLEvent | onload |
{"http://www.w3.org/2001/xml-events", "unload"} Deprecated backwards-compatibility alias: {"http://www.w3.org/2001/xml-events", "SVGUnload"} (see Notes below). |
Only applicable to outermost 'svg' elements. The unload event occurs when the DOM implementation removes a document from a window or frame. | HTMLEvent | onunload |
{"http://www.w3.org/2001/xml-events", "abort"} Deprecated backwards-compatibility alias: {"http://www.w3.org/2001/xml-events", "SVGAbort"} (see Notes below). |
The abort event occurs when page loading is stopped before an element has been allowed to load completely. | HTMLEvent | onabort |
{"http://www.w3.org/2001/xml-events", "error"} Deprecated backwards-compatibility alias: {"http://www.w3.org/2001/xml-events", "SVGError"} (see Notes below). |
The error event occurs when an element does not load properly or when an error occurs during script execution. | HTMLEvent | onerror |
{"http://www.w3.org/2001/xml-events", "resize"} Deprecated backwards-compatibility alias: SVGResize (see Notes below). |
Occurs when a document view is being resized. This event is only applicable to outermost 'svg' elements and is dispatched after the resize operation has taken place. The target of the event is the 'svg' element. | HTMLEvent | onresize |
{"http://www.w3.org/2001/xml-events", "scroll"} Deprecated backwards-compatibility alias: SVGScroll (see Notes below). |
Occurs when a document view is being shifted along the X or Y or both axis, either through a direct user interaction or any change on the 'currentTranslate' property available on SVGSVGElement interface. This event is only applicable to outermost 'svg' elements and is dispatched after the shift modification has taken place. The target of the event is the 'svg' element. | HTMLEvent | onscroll |
{"http://www.w3.org/2000/svg", "selection"} | Current text selection changes. | none | none |
{"http://www.w3.org/2001/xml-events", "change"} | An element loses the input focus and its value has been modified since gaining focus. | HTMLEvent | none |
{"http://www.w3.org/2001/xml-events", "zoom"} Deprecated backwards-compatibility alias: {"http://www.w3.org/2001/xml-events", "SVGZoom"} (see Notes below). |
Occurs when the zoom level of a document view is being changed, either through a direct user interaction or any change to the 'currentScale' property available on SVGSVGElement interface. This event is only applicable to outermost 'svg' elements and is dispatched after the zoom level modification has taken place. The target of the event is the 'svg' element. | DOM3's SVG Events |
onzoom |
{"http://www.w3.org/2001/xml-events", "beginEvent"} | Occurs when an animation element begins. For details, see the description of Interface TimeEvent in the SMIL Animation specification. | DOM3's Timing Events | onbegin |
{"http://www.w3.org/2001/xml-events", "endEvent"}. | Occurs when an animation element ends. For details, see the description of Interface TimeEvent in the SMIL Animation specification. | DOM3's Timing Events | onend |
{"http://www.w3.org/2001/xml-events", "repeatEvent"} | Occurs when an animation element repeats. It is raised each time the element repeats, after the first iteration. For details, see the description of Interface TimeEvent in the SMIL Animation specification. | DOM3's Timing Events | onrepeat |
{"http://www.w3.org/2000/svg", "overflow"} | Occurs when a region which can contain a content flow goes from a non-overflow state into an overflow state (i.e., previously, content did not overflow the container, but now content does overflow the container). | none | none |
{"http://www.w3.org/2000/svg", "underflow"} | Occurs when a region which can contain a content flow goes from a overflow state into a non-overflow state (i.e., previously, content overflowed the container, but now content does not overflow the container). | none | none |
{"http://www.w3.org/2001/xml-events", "wheel"} | Occurs when a rotational input device has been activated. | UIEvent | none |
{"http://www.w3.org/2000/svg", "shapechange"} | Occurs when a path or basic shape has its geometry modified. | none | none |
{"http://www.w3.org/2000/svg", "renderedbboxchange"} | Occurs when the bounding box of a shape's rendered output is modified. | none | none |
{"http://www.w3.org/2000/svg", "traitvaluechanged"} | Occurs when the base value of a trait is modified. | none | none |
{"http://www.w3.org/2000/svg", "traitanimvaluechanged"} | Occurs when the base value of a trait is modified. | none | none |
{"http://www.w3.org/2000/svg", "URLResponse"} | Occurs when a response arrives from a web server after sending a URLRequest. | none | none |
{"http://www.w3.org/2000/svg", "timer"} | A timer event. | none | none |
{"http://www.w3.org/2000/svg", "connectionData"} | Occurs when data arrives. | none | none |
{"http://www.w3.org/2000/svg", "preload"} | A load operation has begun. | none | none |
{"http://www.w3.org/2000/svg", "loadprogress"} | Progress has occurred in loading a given resource. | none | none |
{"http://www.w3.org/2000/svg", "postload"} | A load operation has completed. | none | none |
{"http://www.w3.org/2000/svg", "filesSelected"} | Raised when a user completes the operation of selecting a list of files. | none | none |
{"http://www.w3.org/2004/xbl", "prebind"} | A new XBL binding is in the process of being attached to the event target. For the normative definition of this event, refer to the sXBL specification. | none | none |
{"http://www.w3.org/2004/xbl", "bound"} | A new XBL binding has been attached to the event target. For the normative definition of this event, refer to the sXBL specification. | none | none |
{"http://www.w3.org/2004/xbl", "unbinding"} | A new XBL binding is in the process of being attached to the event target. For the normative definition of this event, refer to the sXBL specification. | none | none |
Notes:
In cases where the event name from SVG 1.1 differs from the DOM3 event name, but the SVG event name is more user-friendly (e.g., "focusin" is more user friendly than "DOMFocusIn"), the SVG 1.1 event name is not deprecated but instead retained as an alias for the DOM3 event name. Therefore:
begin="click"
.
Some exceptions to this rule is necessary for SVG 1.1 backwards compatibility
and to make it easier to integrate SVG with other W3C languages.
The following events use a different string than their localname as their event identifier for
SMIL timing attributes: