EventListener : Object
EventListener is an object that handles an event. It can be passed to
addEventListener()
instead of passing a Function
. Any JavaScript object with a handleEvent
method can be used as an EventListener.Copyright © JavaScripture Contributors