event.currentTarget


event.currentTargetВозвращает: Element

Описание: The current DOM element within the event bubbling phase.

  • Добавлен в версии: 1.3event.currentTarget

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

If you are using jQuery.proxy or another form of scope manipulation, this will be equal to whatever context you have provided, not event.currentTarget

Example:

Alert that currentTarget matches the `this` keyword.

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