Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Events.
<div id="DIV" onclick="console.log(1)">CLICK!</div>
<script>
DIV.onclick = (evt) => console.log(2) DIV.addEventListener("click",()=>console.log(3))
There are no comments on this comment yet.
<div id="DIV" onclick="console.log(1)">CLICK!</div>
<script>
</script>