Last active
April 26, 2017 04:55
-
-
Save devmobasa/1088ed44195db5281b458ed39ea2b645 to your computer and use it in GitHub Desktop.
Mouse click event - Coding Blast - www.codingblast.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let button = document.getElementById('btnClick'); | |
| button.addEventListener('click', onButtonClick); | |
| function onButtonClick(event: MouseEvent) { | |
| console.log(event.target); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment