Skip to content

Instantly share code, notes, and snippets.

@brianmaierjr
Created March 23, 2021 19:50
Show Gist options
  • Save brianmaierjr/6e52be4386cb8362a91a1e029b46879b to your computer and use it in GitHub Desktop.
Save brianmaierjr/6e52be4386cb8362a91a1e029b46879b to your computer and use it in GitHub Desktop.
Console Log Focused Item
document.addEventListener('focus', function() {
console.log('focused: ', document.activeElement)
}, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment