I am trying to get the list of event listeners that are already attached to the element. Right now I have tried using:
getEventListeners(el)
This works fine while using in Chrome. Otherwise, using this code in Javascript gives me the error.
Uncaught ReferenceError: getEventListeners is not defined
Is there any alternate solution to it? Or the same method can be used in Javascript?