Does not work with Opera
It’s an anoying situation that got me thinking and searching for a solution through most part of the day and with no luck.
The function is simple:
and it works with (tested):
- Firefox (3 and 3.5 – Windows and Linux)
- Safari (Windows)
- Internet Explorer (All versions – Windows – amazing :P)
- Google Chrome (Windows)
and it does not work with (tested)
After a lot of research I have found why it does not work with Opera:
You can try to disable by disabling the mousedown event filtering only for Opera, but I do suggest a lot testing on this.
To complete just an extra note: this function does not bind the documents inside an iframe, so in this case you should complete the function by disabling the context menu in the iframe document as well.