Answers for "javascript developer disable custom right click of website"

3

how to disable right click in javascript

// for disabling right click use this as it is 
document.addEventListener('contextmenu', event => event.preventDefault());
event.preventDefault()
Posted by: Guest on July-20-2020

Code answers related to "javascript developer disable custom right click of website"

Code answers related to "Javascript"

Browse Popular Code Answers by Language