FAQ Topic - How do I disable the right mouse button? (2010-06-12)

Discussion in 'Javascript' started by FAQ server, Jun 12, 2010.

  1. FAQ server

    FAQ server Guest

    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.


    <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.



    The complete comp.lang.javascript FAQ is at
    FAQ server, Jun 12, 2010
    1. Advertisements

  2. FAQ server

    David Mark Guest

    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.
    David Mark, Jun 12, 2010
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.