Finn Rudolph

26
Feb
2009
Cross-browser compatible right click context menu in JavaScript

CSS, JavaScript von Finn Rudolph

Phew... that was fun ;D This is a proof of concept. It shows, that one can create a cross-browser compatible right click context menu in JavaScript. And it now even works with Opera (if the user enables some browser settings, which are disabled by default). If you are interested in the Opera Workaround check the Opera forum thread. See the running code at:

http://testground.finnrudolph.de/js/right_click_menu


And if you are interested in the madness behind it I highly recommend reading Javascript Madness: Mouse Events by Jan Wolter.