JS ⟩ browser ⟩ event ⟩ handler ⟩ this
The value of this inside a handler is the element which has the handler on it.
this
event.currentTarget - same as "this" in event handler.
javascript.info ⟩ Introduction to browser events ⟩ Accessing the element: this
Last updated 1 year ago