Created
June 21, 2021 18:15
-
-
Save nolanlawson/5240e01436ed2f9232ca755baf740f3f to your computer and use it in GitHub Desktop.
event.path
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
<!doctype html> | |
<html> | |
<head> | |
<title>event.path</title> | |
</head> | |
<body> | |
<h1>event.path</h1> | |
<button type=button>Click me</button> | |
<script> | |
document.querySelector('button').addEventListener('click', e => console.log(e.path)) | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment