Forum Moderators: phranque

Message Too Old, No Replies

Disabling Right Mouse Button in Netscape 6

Unable to disable the right mouse button in Netscape 6.

         

tthomas

9:49 pm on Feb 9, 2001 (gmt 0)



I have searched for examples on how to disable the right mouse button and I am not able to find any code that will work in Netscape 6. Does anyone know how to disable the right mouse button in Netscape 6? I am able to detect when the right mouse button has been selected, but I can't disable it.

tedster

7:39 am on Feb 10, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



tthomas, you are definitely ahead of the curve here. Most people I know are still waiting for the next release of Netscape 6 before wading into it -- at all.

Here's the only thing I've found so far that relates directly to your question:

document.oncontextmenu = disableRightClick;

function disableRightClick()
{
return false;
}

Netscape 6 marks the first big commercial appearance of JavaScript 1.5 (next stop will be 2.0).

chiyo

7:53 am on Feb 10, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



tthomas,

I think its a lost cause, not becuase of NS6, but because its would be nigh impossible to create a script to ban right clicking that works in all browsers and future access devices. There are so many ways to access content, right clicking is the most convenient for some.

And also why turn it off?

It's illegal to copy material off the internet and use it as your own within the guidelines of the Berne convention. Criminals will always find much smarter ways to get your copyright material other than right clicking!

Not being critical, just musing about something we think about a lot..then maybe your reasons for stopping right clicking is something else together. If so apologise for getting off track...