Last active
December 30, 2015 20:29
-
-
Save nola/7880664 to your computer and use it in GitHub Desktop.
Monitor events on the DOM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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