event.currentTarget

event.currentTarget Returns: Element

Description: The current DOM element within the event bubbling phase.

  • version added: 1.3event.currentTarget

This property will always be equal to the this of the function.

Example:

Alert that currentTarget matches the `this` keyword.

$("p").click(function(event) {
  alert( event.currentTarget === this ); // true
});