Skip to content

Instantly share code, notes, and snippets.

@tysonmote
Created June 11, 2011 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tysonmote/1020154 to your computer and use it in GitHub Desktop.
Save tysonmote/1020154 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<body>
<a id="js_button" class="no_event_fired">Click</a>
<a href="http://google.com">Link</a>
<script>
var el = document.getElementById( "js_button" );
el.addEventListener( "click", function() {
this.className = "addEventListener";
});
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment