Web features explorer

Events

Widely available since 2018-01-29
Tags: api

Events fire when significant things happen in the page, such as an image loading or a user clicking. You can use the addEventListener() method on objects that receive events (event targets), such as windows, documents, and elements, to set a function to be called when an event fires.

Learning resources on MDN

Browser support