I know it is possible to add an event listener to a custom event that I have created in Javascript, like this:
window.addEventListener("MyCustomEvent", myFunction, false);
But...Is it possible to list All custom events that exist at any point?
The above line adds an event listener regardless of whether the event exists or not, so I cannot indicate if the event exists or not.