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.

Does this script still work to disable right click?

View previous topic View next topic Go down

Does this script still work to disable right click?

Post by DigitalCyanide on October 26th 2010, 12:13 am

I was looking for a way to disable right click in my forum and found this.
<script language=JavaScript1.2> function ejs_nodroit() { alert('Right-click is forbidden !!!'); return(false); } document.oncontextmenu = ejs_nodroit; </script>

It was from 2008, so I was wondering if it still works?
I was also wondering if I use this code will it hinder people from using right click to copy and paste text for a quote. I really just want to stop people from being able to take our images with just a few mouse clicks. I know all the in and outs of you cannot keep an image safe, but at least making them work a little for it might help us find those that are 'borrowing' our images. I guess I am asking if the above code is for all right click or just images? Is there a code for just disabling right click for images?
Any help would be greatly appreciated.


Male Posts : 66
Reputation : 0
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