When developing a web application, it can sometimes become useful to inspect an element in dev tools to see what events are attached to it. To monitor events on a particular element, the monitorEvents() function can be used. Once run, the function will write out an event object and all of its associated data to the console when the event is triggered. see the code below for more information.