This is what I use to show a custom menu on right click. I tried the way first mentioned by Dan but it doesn't work with some mouse drivers and mouse button configurations (users were reporting errors, which took us a while to track down to the code showed by Dan. One of our client's mouse drivers reported 11 as the ID for the left click and 12 for right click, so we had to find a better way.
petersom3000 wrote: > > Is there a reason for not using the oncontextmenu event? > http://www.google.com/search?q=oncontextmenu > > > Dan Atkinson wrote: >> >> Feel free to jQuerify this: >> <code> >> function click(e) >> { >> if (document.all) >> { >> if (event.button==2||event.button==3) >> ...etc >> </code> >> It's pretty much just a right click disabler which won't allow right >> clicking in Firefox. >> > > -- View this message in context: http://www.nabble.com/Right-Click-Plugin---Function-tf3043202.html#a8927273 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
