Click here to Skip to main content
Click here to Skip to main content

Tagged as

Disable right click context menu cut, copy, paste

, 5 Aug 2011
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.
Follow on   Twitter

Comments and Discussions

 
GeneralWhat if i want to restrict user to copy content/ text from p... PinmemberJavedsamrt13-Jan-12 3:39 
GeneralReason for my vote of 1 Easily defeated by disabling js. Ver... PinmemberLFD-Mike25-Nov-11 9:13 
GeneralWould like to comment that any method of prevention is entir... PinmemberEdward Nutting24-Nov-11 20:18 
Generallots of thanks to you for the article as it solved my great ... Pinmemberdineshkummarc18-Nov-11 0:02 
GeneralReason for my vote of 5 nice very nice super duper hit code ... Pinmemberdineshkummarc17-Nov-11 23:52 
GeneralReason for my vote of 5 This is very useful code. Now i am e... Pinmemberganpati19-Aug-11 2:48 
GeneralReason for my vote of 3 nowdays nobody uses new Function yo... PinmemberGottZ8-Aug-11 21:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web04 | 2.8.140827.1 | Last Updated 5 Aug 2011
Article Copyright 2011 by rajpandey280684
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid