Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to disable mouse right click in html page

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

// ⇓ Test it (fiddle) ⇓
Comment

PREVIOUS NEXT
Code Example
Javascript :: connected-react-router error could not find router reducer in state tree 
Javascript :: how to see if user on phone 
Javascript :: mongodb text search 
Javascript :: react usecallback 
Javascript :: javascript replace spaces with br 
Javascript :: js spleep 
Javascript :: js get all arguments from function 
Javascript :: save console log to file nodejs 
Javascript :: jquery cdn by google 
Javascript :: share to gmail from website 
Javascript :: nodejs: http:send HTML to the Browser 
Javascript :: json comments 
Javascript :: javascript includes check object 
Javascript :: react native flexbox 2 columns 1 fixed width 
Javascript :: “javascript remove last element from array 
Javascript :: math.max js 
Javascript :: how to generate random color hexcodes for javascript 
Javascript :: password validation with regular expression in javascript 
Javascript :: jsx loop array 
Javascript :: check if value is number 
Javascript :: js how to convert vh to pixel 
Javascript :: .text javascript 
Javascript :: random function in javascript 
Javascript :: react js typescript doc data is possibly undefined 
Javascript :: random color 
Javascript :: submit form without redirection 
Javascript :: how to make a github api using react 
Javascript :: javaScript setMinutes() Method 
Javascript :: convert curl response to json format and echo the data 
Javascript :: use map to loop through an array 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =