Skip to content

Instantly share code, notes, and snippets.

@nola
Last active December 30, 2015 20:29
Show Gist options
  • Select an option

  • Save nola/7880664 to your computer and use it in GitHub Desktop.

Select an option

Save nola/7880664 to your computer and use it in GitHub Desktop.
Monitor events on the DOM
//put this in the console
monitorEvents(window)
//only mouse events
monitorEvents(window, 'mouse')
//only keyboard events
monitorEvents(window, 'key')
//only scroll activity
monitorEvents(window, "scroll");
//monitor events on a specific object
//where 0 is a DOM element you are targeting
monitorEvents($$("div"),[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment