[JavaScript] - event.Target vs event.currentTarget
May 3, 2021 · 1 min read · event.target Points to element, which triggers the event. event.currentTarget Points to element, to which the Event Listener is attached to. Confused? Let's consider this example, where a button is nested inside a paragraph and both button and paragr...
Join discussion