JavaScript multiple events on element
addEventListener registers a single event listener on a single target. The event target may be a single node in a document, the document itself, a window, or an XMLHttpRequest. To register more than one event listeners for the target, call addEventListener for the same target but with different event types or capture parameters.