offline version v3


215 of 264 menu

event.currentTarget property

The event.currentTarget property contains the element an the event was assigned to. Unlike event.target, this is not the deepest tag in which the event happened, but the element to which it was attached. Most often, event.currentTarget is the same as this, but sometimes this may not be the case for some reason. In this case, you need currentTarget.

Syntax

event.currentTarget;

See also

  • the target property
    that defines the element on which an event was assigned
  • the type property
    that shows an event type
enru