0

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?

tonitone120
  • 1,920
  • 3
  • 8
  • 25

1 Answers1

1

Have you checked this, this is all the listing of events that can be captured in JS.

https://developer.mozilla.org/en-US/docs/Web/Events

Asutosh
  • 1,775
  • 2
  • 15
  • 22
  • This list does not contain *all* the events that can be captured in JS, For instance, MeidaRecorder.onstart](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstart) is not listed there. But anyway, having a list of *all* the events that can be captured in JS is not possible since one can create their own custom events. – Kaiido Sep 07 '20 at 04:54