Disable Right Mouse Click
3 posters
Page 1 of 1
Disable Right Mouse Click
Why won't this code work?
<script language=JavaScript>
<!--
var message="Disabled";
function click(z) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (z.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>
I am not that computer nerdy so not sure. I have tried <head></head> and still won't work.
EDIT: Think I posted in the wrong sub forum. Was looking at script earlier and must have moved.
<script language=JavaScript>
<!--
var message="Disabled";
function click(z) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (z.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>
I am not that computer nerdy so not sure. I have tried <head></head> and still won't work.
EDIT: Think I posted in the wrong sub forum. Was looking at script earlier and must have moved.
War Priest- New Member
- Posts : 7
Reputation : 1
Language : English
Re: Disable Right Mouse Click
Have you read this - https://help.forumotion.com/t50779-script-to-disable-the-right-click ?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Disable Right Mouse Click
Yes, and it doesn't work.
Also, instead of adding it to the whole site, can I just add it to one topic?
Also, instead of adding it to the whole site, can I just add it to one topic?
War Priest- New Member
- Posts : 7
Reputation : 1
Language : English
Re: Disable Right Mouse Click
One topic only or all topics?
Rideem3 code would be for all topics?
Rideem3 code would be for all topics?
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: Disable Right Mouse Click
Just one topic. If not possible I can settle for all topics.
War Priest- New Member
- Posts : 7
Reputation : 1
Language : English
Re: Disable Right Mouse Click
Thanks Rideem3. How do I do it for just one topic?
War Priest- New Member
- Posts : 7
Reputation : 1
Language : English
Similar topics
» Alret Right-click Mouse problem
» Disable Right Click
» How to disable right click?
» How to disable right click
» How to disable right click?
» Disable Right Click
» How to disable right click?
» How to disable right click
» How to disable right click?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum