The SVG Event.currentTarget property identifies the current target for the event, as the event traverses the DOM.
Syntax:
var currentEventTarget = event.currentTarget
Return value: This property returns the object value of the event element.
Example 1:
Output:
👁 Image
Example 2:
Output:
👁 Image