Created
February 14, 2022 17:16
-
-
Save ashsaraga/72b9e9b626cdb7030855ad696fd1cb12 to your computer and use it in GitHub Desktop.
Quick script to `console.log()` any element clicked on.
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.onclick = e => { | |
console.log(e.target); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment