How to disable cut , copy, paste on Client browser's using javascript
Javascript based techniques can be easily disabling javascript support methods on browsers. The following script also work with IE
Code:
Javascript based techniques can be easily disabling javascript support methods on browsers. The following script also work with IE
Code:
<html> <head> </head> <body oncopy="return false;" onpaste="return false;" oncut="return false;"> <form id="form1" runat="server"> <div> Try to copy this and paste in your editor </div> </form> </body> </html>
2 comments:
Unfortunately, it is easy to open this code but thanks for your information.
better do the disable operation by using jquery, This will help in all the web projects, not only asp.net. ....
http://kvcodes.com/2014/03/disabling-textbox-cut-copy-and-paste-operations/
Post a Comment
Share your thoughts here...