click_child.html (220B)
1 <!doctype html> 2 <button id="button">Button</button> 3 <div id="log">FAIL</div> 4 <script> 5 document.getElementById("button").addEventListener("click", () => 6 document.getElementById("log").textContent = "PASS"); 7 </script>