1<button>A</button>
2<button>B</button>
3<button>C</button>
4<script>
5 document.body.addEventListener("click", event => {
6 if (event.target.nodeName == "BUTTON") {
7 console.log("Clicked", event.target.textContent);
8 }
9 });
10</script>