In javascript, is there a way yo as a element for the events that i can use to add listener.
Something like:
element = document.getElementById(id);
console.log(element.listEvents);
Im using a DOM example, but this would be usefull in node.js also.