console log all event code example
Example: console log all events
monitorEvents(document.body); //log all events
monitorEvents(document.body, 'mouse'); //log all mouse events
monitorEvents(document.body); //log all events
monitorEvents(document.body, 'mouse'); //log all mouse events