The SVGAnimationElement.targetElement property refers to the element which is being animated. If no target element is being animated (for example, because the href attribute specifies an unknown element), the value returned is null.


var targetElement = someElement.targetElement;


Specification Status Comment
SVG Animations Level 2
The definition of 'SVGAnimationElement.targetElement' in that specification.
Editor's Draft Added null as return value in case that no target element is being animated.
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'SVGAnimationElement.targetElement' in that specification.
Recommendation Initial definition

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support ? ? ? ? ? ?
Feature Android Android Webview Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support ? ? ? ? ? ? ?

Document Tags and Contributors

 Contributors to this page: Sebastianz
 Last updated by: Sebastianz,