javascript disable right click
document.addEventListener('contextmenu', event => event.preventDefault());
javascript disable right click
document.addEventListener('contextmenu', event => event.preventDefault());
disable right click javascript
//Disable mouse right click
$("body").on("contextmenu", function(e) {
return false;
});
how to disable right click in javascript
// for disabling right click use this as it is
document.addEventListener('contextmenu', event => event.preventDefault());
event.preventDefault()
disable mouse right click javascript
document.oncontextmenu = document.body.oncontextmenu = function() {return false;}
javascript disable right click
document.addEventListener('contextmenu', event => event.preventDefault());
// ⇓ Test it (fiddle) ⇓
disable right click javascript
document.addEventListener('contextmenu', event => event.preventDefault());
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us