Skip to content

Instantly share code, notes, and snippets.

@csdy
Created May 24, 2013 07:06
Show Gist options
  • Save csdy/5641779 to your computer and use it in GitHub Desktop.
Save csdy/5641779 to your computer and use it in GitHub Desktop.
Show currently focused element (useful for debugging tabindex)
alert(document.activeElement.innerHTML);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment