The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Disable Right Mouse Click

View previous topic View next topic Go down

In progress Disable Right Mouse Click

Post by War Priest on June 4th 2012, 10:10 am

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.

War Priest
New Member

Posts : 7
Reputation : 1
Language : English

Back to top Go down

In progress Re: Disable Right Mouse Click

Post by SLGray on June 4th 2012, 10:32 am



When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36751
Reputation : 2449
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: Disable Right Mouse Click

Post by War Priest on June 4th 2012, 8:28 pm

Yes, and it doesn't work.

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

Back to top Go down

In progress Re: Disable Right Mouse Click

Post by kirk on June 5th 2012, 2:43 am

One topic only or all topics?
Rideem3 code would be for all topics?




kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

In progress Re: Disable Right Mouse Click

Post by War Priest on June 5th 2012, 3:19 am

Just one topic. If not possible I can settle for all topics.

War Priest
New Member

Posts : 7
Reputation : 1
Language : English

Back to top Go down

In progress Re: Disable Right Mouse Click

Post by War Priest on June 5th 2012, 3:49 am

Thanks Rideem3. How do I do it for just one topic?

War Priest
New Member

Posts : 7
Reputation : 1
Language : English

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum