Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
event.path
<!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