Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
DisableContextmenu.js
codergautamyt
Jun 14th, 2020
(
edited
)
169
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
JavaScript
0.13 KB
| None
|
0
0
raw
download
clone
embed
print
report
//Copy this code into <script> tag to disable Contextmenu
document.
addEventListener
(
'contextmenu'
,
function
(
e
)
{
e.
preventDefault
(
)
;
}
)
;
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 10 min ago | 0.39 KB
Untitled
C# | 33 min ago | 4.54 KB
Untitled
TypeScript | 40 min ago | 2.13 KB
:/
JavaScript | 48 min ago | 5.22 KB
Untitled
Java | 2 hours ago | 1.72 KB
Splah Layout
XML | 2 hours ago | 0.31 KB
AI-GENERATE2.pyw
Python | 3 hours ago | 3.50 KB
(autohotkey) bouncing deskop cat friend
Autohotkey | 3 hours ago | 3.07 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!