![]() |
VOOZH | about |
jQueryevent.currentTarget property is used to return the current DOM element within the event bubbling phase. The event.currentTarget is typically equal to "this".
event.currentTargetExample 1: In this example, we will return the true value within the event bubbling phase by clicking on any HTML element.
Output:
👁 ImageExample 2: In this example, we will return the same value of the element within the event bubbling phase by clicking on any HTML element.
Output:
👁 Image