Created
July 26, 2021 14:52
-
-
Save melvinstanly/df4e008902a20f086578694a207303c6 to your computer and use it in GitHub Desktop.
Check the event target is a particular html element
This file contains 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
<script> | |
if(event.target.tagName.toLowerCase() === 'div'){ | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment