One can access the current event through window.event
. Just using event
is implicitly accessing window.event
.
More Related Contents:
- event.preventDefault() vs. return false
- What is DOM Event delegation?
- window.onload vs document.onload
- How can I capture the right-click event in JavaScript? [duplicate]
- How can I trigger an onchange event manually? [duplicate]
- DOM event precedence
- event.preventDefault() vs. return false (no jQuery)
- Handle URL fragment identifier (anchor) change event in Javascript
- Accessing an object’s property from an event listener call in JavaScript
- jQuery equivalent of JavaScript’s addEventListener method
- Capture click on div surrounding an iframe
- Are event handlers in JavaScript called in order?
- Implementing jQuery’s “live” binder with native Javascript
- Handling “onclick” event with pure JavaScript
- JavaScript add events cross-browser function implementation: use attachEvent/addEventListener vs inline events
- visibilitychange event is not triggered when switching program/window with ALT+TAB or clicking in taskbar
- Surprised that global variable has undefined value in JavaScript
- Use of .apply() with ‘new’ operator. Is this possible?
- JavaScript click event listener on class
- onKeyPress Vs. onKeyUp and onKeyDown
- How can I get the scrollbar position with JavaScript?
- Chrome extension code vs Content scripts vs Injected scripts
- Wait 5 seconds before executing next line
- Native JS equivalent to jQuery delegation
- Extend Javascript promise and resolve or reject it inside constructor
- Looping through files for FileReader, output always contains last value from loop
- event.clipboardData.setData in copy event
- event.target on Firefox
- Why does .then() chained to Promise.resolve() allow const declaration to be reassigned?
- Function not calling within an onclick event