Created
February 17, 2023 13:57
-
-
Save townivan/5b9aeaee61eecdd5a87f31c2ef86043a to your computer and use it in GitHub Desktop.
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
Events bubble by default. So the difference between the two is: | |
target is the element that triggered the event (e.g., the user clicked on) | |
currentTarget is the element that the event listener is attached to. | |
source: https://stackoverflow.com/a/10086501/1735394 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment