Event.target - Web documentation
property Event.target

Returns the object to which event is dispatched (its target).

Type

EventTarget | null