How to get the event list of an HTML element

I need to get the event list of an html element.

To be clear I don’t mean the inline events that are mentioned in this thread.

I need to get the EventListeners that are added by function addEventListener().

It would also be very convenient to be able to understand how to remove an event present in the list without the need of the function used to create it, as required by removeEventListener() function.