No copy paste.

By Kerrie on Jan 26, 2011

Simple little code,
prevents guests from copying and pasting.

<script language="JavaScript">
function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Please don't steal my stuff!!!");
return false;
return true;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);


Sign in to comment.
Korvin   -  Oct 19, 2011

Standard HTML:

        <link rel='stylesheet' href='css source' />
        <script src='Script Source'></script>
            All that jazz;

Because you don't understand this, you need to (at this point) completely give up of JavaScript and learn static HTML. If you don't you will NEVER comprehend ANY web development language.

stop   -  Aug 24, 2011

wader, where can i found that

?? can u type here step by step. thnx :D
Wade   -  Aug 03, 2011

Stop you need to paste it into the

tags of a html document :)
stop   -  Aug 03, 2011

Hi im newbie in javaS. uh where do i paste that code?

Callumlord   -  Mar 26, 2011

Yeh but will it stop it a in channel?

sunslayer   -  Feb 22, 2011

heres something to prevent CTRL+C (in jQuery)

        else if(e.keyCode==67&&ctrl){e.preventDefault();return false;}
Callumlord   -  Feb 22, 2011

You can still CTRL + C :( but great script :))))) try and add the CTRL + C block :))))

BigSteve   -  Jan 27, 2011

doesnt stop you using CTRL + C though so you can still c&p

Hawkee   -  Jan 26, 2011

Ack, I would be very bothered if something like this stopped me from copying text. I usually copy strings to run them through Google, not to steal any information.

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.