From: FAQ server on
-----------------------------------------------------------------------
FAQ Topic - How do I disable the right mouse button?
-----------------------------------------------------------------------

The nonstandard ` contextmenu ` event is not widely supported.
Browsers that do support it may be configured to prevent scripts from
accessing that event.

Example:

<body oncontextmenu="return false">

Disables the context menu where supported. Note that this will not
prevent users from viewing your source code or copying images. To
discourage copying, provide a copyright notice.

http://msdn.microsoft.com/en-us/library/ms536914(VS.85).aspx

https://developer.mozilla.org/En/DOM/Window.oncontextmenu


The complete comp.lang.javascript FAQ is at
http://jibbering.com/faq/

--

The sendings of these daily posts are proficiently hosted
by http://www.pair.com.

From: David Mark on
On Jun 11, 7:00 pm, "FAQ server" <javascr...(a)dotinternet.be> wrote:
> -----------------------------------------------------------------------
> FAQ Topic - How do I disable the right mouse button?
> -----------------------------------------------------------------------
>

It's not always the right button. In some cases, it isn't even a
separate button. Furthermore, the context action can be invoked by
some keyboards.