# (OT) Javascript onclick handler and browser context menus

**URL:** <https://www.ruby-forum.com/t/ot-javascript-onclick-handler-and-browser-context-menus/113994>\
**Category:** Rails\
**Created:** [September 6, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/ot-javascript-onclick-handler-and-browser-context-menus/113994 "2007-09-06T23:03:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [September 6, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/ot-javascript-onclick-handler-and-browser-context-menus/113994/1 "2007-09-06T23:03:04Z")

</div>

All,

I am noticing that any of my tags which have “onclick” event  
handlers attached to them (via the inline HTML attributes usually) will  
not show the browser’s default context menu when they are right-clicked  
on, in both FF and IE.

Is this expected? If so, why?

Is there any way to get around this issue?

Thanks,  
Wes

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [September 7, 2007, 12:32am UTC](https://www.ruby-forum.com/t/ot-javascript-onclick-handler-and-browser-context-menus/113994/2 "2007-09-07T00:32:57Z")

</div>

Found it! Shockingly, some custom script I am loading is getting the  
way.  
Sorry for the trouble.

WG
