Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to disable right click on website

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

// ⇓ Test it (fiddle) ⇓
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript how to print working directory 
Javascript :: Dropzone already attached 
Javascript :: nextelementsibling js 
Javascript :: moment js cdn 
Javascript :: convert base64 to uint8array javascript 
Javascript :: how to add elements in javascript html 
Javascript :: select option value jquery 
Javascript :: express post body 
Javascript :: jquery get height of element 
Javascript :: javascript json upload 
Javascript :: vue check if list is empty 
Javascript :: how to get sys time in js 
Javascript :: how to get ip address in javascript 
Javascript :: json user data file sample 
Javascript :: use js variable in blade route 
Javascript :: add formdata to axios request in js 
Javascript :: javascript clear all intervals 
Javascript :: regex char any quantity 
Javascript :: separatly fetch a strings with commas inn js 
Javascript :: get uploaded file name in js 
Javascript :: find particular object from array in js 
Javascript :: Javascript to remove the pressed class after a 100 milliseconds 
Javascript :: onload set scroll on top of page jquery 
Javascript :: prevent browser back button jquery 
Javascript :: status nodejs 
Javascript :: new date with date + 1 
Javascript :: hnazmul hassan 
Javascript :: calculate time difference in hrs moment 
Javascript :: how to access xpath in js 
Javascript :: How to include JSPs file from another folder 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =