Skip to content

Instantly share code, notes, and snippets.

@jarib
Forked from tysonmote/gist:1020154
Created June 11, 2011 11:59
Show Gist options
  • Save jarib/1020498 to your computer and use it in GitHub Desktop.
Save jarib/1020498 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";
}, false);
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment