Click here to Skip to main content
12,512,130 members (57,299 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

33.2K views
9 bookmarked
Posted

Disable right click context menu cut, copy, paste

, 5 Aug 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
<script type="text/javascript">
document.oncontextmenu=new Function("return false");
</script>

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

rajpandey280684
Software Developer Vbsoft India Ltd
India India
Working as Software Developer with 2 year exp.

You may also be interested in...

Pro
Pro

Comments and Discussions

 
GeneralWhat if i want to restrict user to copy content/ text from p... Pin
Javedsamrt13-Jan-12 3:39
memberJavedsamrt13-Jan-12 3:39 
GeneralReason for my vote of 1 Easily defeated by disabling js. Ver... Pin
LFD-Mike25-Nov-11 9:13
memberLFD-Mike25-Nov-11 9:13 
GeneralWould like to comment that any method of prevention is entir... Pin
Edward Nutting24-Nov-11 20:18
memberEdward Nutting24-Nov-11 20:18 
Generallots of thanks to you for the article as it solved my great ... Pin
dineshkummarc18-Nov-11 0:02
memberdineshkummarc18-Nov-11 0:02 
GeneralReason for my vote of 5 nice very nice super duper hit code ... Pin
dineshkummarc17-Nov-11 23:52
memberdineshkummarc17-Nov-11 23:52 
GeneralReason for my vote of 5 This is very useful code. Now i am e... Pin
ganpati19-Aug-11 2:48
memberganpati19-Aug-11 2:48 
GeneralReason for my vote of 3 nowdays nobody uses new Function yo... Pin
GottZ8-Aug-11 21:04
memberGottZ8-Aug-11 21:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160929.1 | Last Updated 5 Aug 2011
Article Copyright 2011 by rajpandey280684
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid