# Using right mouse -- without context menu?

**URL:** <https://discourse.processing.org/t/using-right-mouse-without-context-menu/9379>\
**Category:** Coding Questions\
**Created:** [March 17, 2019, 1:16pm UTC](https://discourse.processing.org/t/using-right-mouse-without-context-menu/9379 "2019-03-17T13:16:37Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Convict999](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/convict999/32/4209_2.png) [@Convict999](https://discourse.processing.org/u/Convict999)\
**Post date:** [March 20, 2019, 1:29am UTC](https://discourse.processing.org/t/using-right-mouse-without-context-menu/9379/3 "2019-03-20T01:29:02Z")

</div>

> **[Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/27830/prevent-right-click-from-opening-context-menu-yet-firing-object-s-mouseclick-event)**
>
> Processing is an electronic sketchbook, a language and a worldwide community. This is its forum.

  
was the thread.

a friend helped gave me the following to add to sketch.

```auto
document.oncontextmenu = function() {
    return false;
}

```

working good now, thanks for replying.  
I think it should be added to the reference as the potential defaults issue was hinted at but the given examples didnt work in my case, though fundamentally the same code. i am using web editor. I can post link to code later if you think ive found a glitch. #noobCoder 😃

thanks

---

_[View the full topic](https://discourse.processing.org/t/using-right-mouse-without-context-menu/9379)._
