Source code

Revision control

Copy as Markdown

Other Tools

<!doctype html>
<button id="button">Button</button>
<div id="log">FAIL</div>
<script>
document.getElementById("button").addEventListener("click", () =>
document.getElementById("log").textContent = "PASS");
</script>