Created
October 23, 2015 06:07
-
-
Save RadoMark/c330910a6eaf0cfdf19b to your computer and use it in GitHub Desktop.
Event object accessible when there is no explicit event argument.
This file contains 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
document.addEventListener("DOMContentLoaded", function() { | |
console.log(event); | |
let button = document.getElementById('touch-me'); | |
button.addEventListener('mouseover', function() { | |
console.log(event); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment