log all click events javascript 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