Disable Cut/Copy/Paste into HTML form using Javascript | Coding Cluster - using asp.net, c#, mvc 4, iphone, php, ios, javascript, in asp.net mvc 3 & more
 

Disable Cut/Copy/Paste into HTML form using Javascript

Tuesday

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:

<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:

Adi™ said...

Unfortunately, it is easy to open this code but thanks for your information.

Varadharaj V said...

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...

 
 
 

RECENT POSTS

Boost

 
Blogger Widgets