Search
 
SCRIPT & CODE EXAMPLE
 

HTML

how to disable right click on website

document.addEventListener('contextmenu', event => event.preventDefault());

// ⇓ Test it (fiddle) ⇓
Comment

PREVIOUS NEXT
Code Example
Html :: internal link css 
Html :: html center tag 
Html :: how to color div html 
Html :: seo tags in html 
Html :: align right bootstrap 
Html :: how to remove glow around button html 
Html :: html color pink 
Html :: html text cut 
Html :: angular mat slide toggle get value 
Html :: express send html file 
Html :: svg xlink 
Html :: open modal when clicking fullCalendar event bootstrap 
Html :: vuetify row center vertically 
Html :: js html input type image base64 example 
Html :: html align text center 
Html :: html input datetime-local value 
Html :: fa icon facebook 
Html :: html error font 
Html :: ngForm 
Html :: how to disable shadow in bootstrap button 
Html :: publish html website 
Html :: bootstrap select dropdown height size 
Html :: html abbreviation 
Html :: html add vertical space below 
Html :: changing text colour in html 
Html :: html prevent newline 
Html :: input number html without e 
Html :: link open in new tab html 
Html :: angularjs input checked conditional 
Html :: html always show scrollbar 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =