Skip to content

Instantly share code, notes, and snippets.

@linclark
Created July 1, 2016 13:54
Show Gist options
  • Save linclark/76f0c8e3fa821e4f4e94ef70df1b0d24 to your computer and use it in GitHub Desktop.
Save linclark/76f0c8e3fa821e4f4e94ef70df1b0d24 to your computer and use it in GitHub Desktop.
data:text/html;charset=utf-8,<div id="test">test</div><script>document.getElementById("test").addEventListener("click", function( event ) {event.target.innerHTML = "click count: " + event.detail; console.log(event)}, false);</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment