Skip to content

Instantly share code, notes, and snippets.

@mbvissers
Created December 29, 2020 15:16
Show Gist options
  • Save mbvissers/d942707599552a80eabe6e1922e7e1f6 to your computer and use it in GitHub Desktop.
Save mbvissers/d942707599552a80eabe6e1922e7e1f6 to your computer and use it in GitHub Desktop.
<script>
document.getElementById("myBtn").addEventListener("click", function (){
console.log("clicked")
});
</script>
<button id="myBtn">My button</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment