Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <button type="button" id="mybutton" class="btn btn-success">
- <span>Test</span>
- </button>
- <script>
- document.getElementById("mybutton").addEventListener('click',function(event){
- event.stopPropagation();
- console.log(event.target)
- },true );
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement