MediaWiki:Common.js: Difference between revisions
No edit summary Tag: Manual revert |
No edit summary |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
window.addEventListener('keydown',function(e) | |||
{ | |||
// e = e || window.event; | |||
// var target = e.target || e.srcElement; | |||
// console.log('window noticed you clicked something'); | |||
// console.log(target);//<-- this is the element that was clicked | |||
},true);//<-- we'll get to the false in a minute |
Revision as of 04:16, 29 April 2024
/* Any JavaScript here will be loaded for all users on every page load. */
window.addEventListener('keydown',function(e)
{
// e = e || window.event;
// var target = e.target || e.srcElement;
// console.log('window noticed you clicked something');
// console.log(target);//<-- this is the element that was clicked
},true);//<-- we'll get to the false in a minute