MediaWiki:Common.js: Difference between revisions

From BibleVerseWiki
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 9: Line 9:
     // console.log('window noticed you clicked something');
     // console.log('window noticed you clicked something');
     // console.log(target);//<-- this is the element that was clicked
     // console.log(target);//<-- this is the element that was clicked
}, false);//<-- we'll get to the false in a minute
});//<-- we'll get to the false in a minute

Revision as of 04:13, 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
});//<-- we'll get to the false in a minute