Learning about events like 'click'
, I thought it'd be useful to seek out MDN to have a handy reference of all possible events that I could read up on (and reference when I discover them in other people's code).
Basically, a reference of all that you could replace 'click'
with here:
document.addEventListener('click', handler)
What I found:
List of common ones (search ‘Standard Events’).
Looks okay but doesn't include 'DOMContentLoaded' etc.
An exhaustive list would be nice - is there one?