Tell me please. Is it possible to do such a thing as trapping events? Tobish when an event occurs shows what kind of event it is and where does it come from (file or string)?

  • What kind of events are we talking about? - Grundy
  • What for? This refers to normal client events and not sse, right? If you want to catch what has changed the node, in the debagger you can catch events that change the node. What do you mean by "events from the file" I did not understand =) - Duck Learns to Hide
  • @Grundy Click .. keystroke ... etc. - Tsyklop
  • @ Duck Click .. key presses ... etc. - Tsyklop
  • You can choose a node in the debugger and see Event Listeners for her, for example - Duck Learns to Take Cover

2 answers 2

You need to look in the direction of the debugger, namely snippets, here on Habré there is an article and another from Google

And here is another snippet similar to your decision. Well, that's quite the apple monitorEvents ()

    You can use chrome debager by checking the sources tabs on the events you want to listen to. How to do this is well written here: https://stackoverflow.com/questions/10213703/how-do-i-view-events-fired-on-an-element-in-chrome-web-developer