What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Disabling Right Clicking in Html?

Disabling Right Clicking in Html?
Author: Message:
.Roy
Veteran Member
*****

Avatar

Posts: 1526
Reputation: 11
20 / Male / –
Joined: Aug 2004
RE: Disabling Right Clicking in Html?
quote:
Originally posted by may73alliance
quote:
Originally posted by Anubis
It is not possible in pure HTML, but you will need to use JavaScript
Just paste that into the <BODY> tag. btw, disableing right clicking is not a fool proof way to stop people stealing your websites sources. It will only stop pople who are very limited computer users in general.

code:
<script language=JavaScript>
var message="Function Disabled!";

///////////////////////////////////

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")
</script>


thanks anubis. so just copy that into the html code yeah? i dont really use javascript...is it external like .css? or do i place that code in the html? thanks:)

you go to the html file in ur site.

now u look for <body> and under body u just paste all of that. Its that easy.
04-03-2005 07:35 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Disabling Right Clicking in Html? - by M73A on 04-03-2005 at 07:17 PM
RE: Disabling Right Clicking in Html? - by Jhrono on 04-03-2005 at 07:21 PM
RE: Disabling Right Clicking in Html? - by Dempsey on 04-03-2005 at 07:23 PM
RE: Disabling Right Clicking in Html? - by Anubis on 04-03-2005 at 07:26 PM
RE: Disabling Right Clicking in Html? - by M73A on 04-03-2005 at 07:33 PM
RE: Disabling Right Clicking in Html? - by .Roy on 04-03-2005 at 07:35 PM
RE: Disabling Right Clicking in Html? - by M73A on 04-03-2005 at 07:37 PM
RE: Disabling Right Clicking in Html? - by toddy on 04-03-2005 at 07:37 PM
RE: Disabling Right Clicking in Html? - by M73A on 04-03-2005 at 07:44 PM
RE: Disabling Right Clicking in Html? - by Dempsey on 04-03-2005 at 07:48 PM
RE: Disabling Right Clicking in Html? - by M73A on 04-03-2005 at 07:57 PM
RE: Disabling Right Clicking in Html? - by Dempsey on 04-03-2005 at 08:12 PM
RE: Disabling Right Clicking in Html? - by Anubis on 04-03-2005 at 08:15 PM
RE: Disabling Right Clicking in Html? - by Ezra on 04-03-2005 at 08:26 PM
RE: RE: Disabling Right Clicking in Html? - by Anubis on 04-03-2005 at 08:32 PM
RE: Disabling Right Clicking in Html? - by M73A on 04-03-2005 at 08:34 PM
RE: Disabling Right Clicking in Html? - by albert on 04-03-2005 at 09:07 PM
RE: Disabling Right Clicking in Html? - by lizard.boy on 04-03-2005 at 09:46 PM
RE: Disabling Right Clicking in Html? - by linx05 on 04-04-2005 at 09:20 AM
RE: Disabling Right Clicking in Html? - by Pipish on 04-04-2005 at 09:26 AM
RE: Disabling Right Clicking in Html? - by TheGeek on 04-04-2005 at 01:11 PM
RE: Disabling Right Clicking in Html? - by .Roy on 04-05-2005 at 06:03 AM
RE: Disabling Right Clicking in Html? - by Purity on 04-05-2005 at 06:05 AM
RE: Disabling Right Clicking in Html? - by .Roy on 04-05-2005 at 06:08 AM
RE: RE: Disabling Right Clicking in Html? - by TheGeek on 04-05-2005 at 12:03 PM
RE: Disabling Right Clicking in Html? - by Concord Dawn on 04-05-2005 at 12:23 PM
RE: Disabling Right Clicking in Html? - by -dt- on 04-05-2005 at 12:25 PM
RE: Disabling Right Clicking in Html? - by TheGeek on 04-05-2005 at 03:41 PM
RE: Disabling Right Clicking in Html? - by segosa on 04-06-2005 at 06:38 AM
RE: Disabling Right Clicking in Html? - by ipab on 04-06-2005 at 06:50 AM
RE: Disabling Right Clicking in Html? - by saralk on 04-18-2006 at 01:09 PM
RE: RE: Disabling Right Clicking in Html? - by rav0 on 04-18-2006 at 11:46 PM
RE: Disabling Right Clicking in Html? - by hmaster on 04-18-2006 at 03:03 PM
RE: Disabling Right Clicking in Html? - by Supersonicdarky on 04-18-2006 at 11:55 PM
RE: RE: Disabling Right Clicking in Html? - by rav0 on 04-19-2006 at 12:00 AM
RE: RE: RE: Disabling Right Clicking in Html? - by Supersonicdarky on 04-19-2006 at 12:02 AM
RE: Disabling Right Clicking in Html? - by rav0 on 04-19-2006 at 12:06 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On