FAQ Topic - How do I disable the right mouse button? (2009-12-16)

F

FAQ server

-----------------------------------------------------------------------
FAQ Topic - How do I disable the right mouse button?
-----------------------------------------------------------------------

The nonstandard ` contextmenu ` event is not widely supported.
Browsers that do support it may 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/
 
D

Dr J R Stockton

In comp.lang.javascript message <[email protected]
, Wed, 16 Dec 2009 00:00:02, FAQ server <[email protected]> posted:

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

Copy'n'paste the displayed FAQ text into a good word processor, or Word,
and a number of spelling & grammar errors will be indicated, including
that one.
 
G

Garrett Smith

Dr said:
In comp.lang.javascript message <[email protected]

Oh, definitely not good. Thanks.

| Browsers that do support it may *be* configured...

Changed locally. Will updated changes after discussion of "trim" is done
(that should be 1-2 days).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top