Created
February 24, 2021 10:46
-
-
Save samundrak/2c24443be299aa85700f8725eeee8847 to your computer and use it in GitHub Desktop.
Will continuously console log current active element
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
window.addEventListener('focusin',() => { | |
console.log(document.activeElement) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment