Last active
December 25, 2015 19:39
-
-
Save davidmontoyago/7028854 to your computer and use it in GitHub Desktop.
Inspect dom elements in Chrome as you move with the Tab key.
This file contains 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
$("body *").on('keydown', function(event) { | |
var keyCode = event.which; | |
if (keyCode == 9) { | |
console.log(event.target); | |
inspect(event.target); | |
} | |
event.stopPropagation(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment