Skip to content

Instantly share code, notes, and snippets.

@karloscarweber
Created February 21, 2013 16:48
Show Gist options
  • Save karloscarweber/5006134 to your computer and use it in GitHub Desktop.
Save karloscarweber/5006134 to your computer and use it in GitHub Desktop.
A little javascript to echo which element has the focus.
// kowFocus.js
// A little javascript to echo which element has the focus hardcore. (Uses Jquery)
// written by: Karl Oscar Weber, http://karloscarweber.com
setTimeout(function(){
$('*').on('focus', function(){
console.log($(this));
})
}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment