Skip to content

Commit b0e12d1

Browse files
committed
Adding Event Listeners
1 parent 3c92738 commit b0e12d1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

DOM/adding-event-listeners.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ <h1 id="title">Adding Event Listeners</h1>
2929
console.log(this);
3030
}
3131
btn.addEventListener("click", handleClick);
32+
33+
btn.addEventListener("dblclick", (event) => {
34+
console.log("Double Clicked");
35+
console.log(event.target);
36+
console.log(this);
37+
});
3238
</script>
3339
</body>
3440
</html>

0 commit comments

Comments
 (0)