Skip to content

Instantly share code, notes, and snippets.

@RadoMark
Created October 23, 2015 06:07
Show Gist options
  • Save RadoMark/c330910a6eaf0cfdf19b to your computer and use it in GitHub Desktop.
Save RadoMark/c330910a6eaf0cfdf19b to your computer and use it in GitHub Desktop.
Event object accessible when there is no explicit event argument.
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