Look at the source, this is an example of event handlers in JavaScript

and manipulation of the elements in the document object.



if you click on the button it's background will change colour

if you click on the any element on the document it's background will change colour because the event is propagated from the document eventlistener

take a look at the console in the dev tools, the object is logged