Answers for "how to disable browser context menu in js"

8

javascript prevent context menu

document.addEventListener('contextmenu', event => event.preventDefault());
Posted by: Guest on March-04-2020

Code answers related to "how to disable browser context menu in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language