MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
J. Malcolm (talk | contribs) mNo edit summary |
J. Malcolm (talk | contribs) mNo edit summary |
||
| Line 1: | Line 1: | ||
document.addEventListener('contextmenu', function(e) { | document.addEventListener('contextmenu', function(e) { | ||
Revision as of 09:09, 29 October 2023
document.addEventListener('contextmenu', function(e) {
e.preventDefault(); // Prevents the browser's default right-click menu from appearing
var notification = new Notification('Right Click Detected!');
});