I've been tasked with a requirement to override the browser's right-click functionality and add client specific options to the context menu, as well as the op开发者_如何学编程tions that are already there. Is this possible? If so, what kind of work is involved?
I noticed that on Google Docs, they have replaced the context menu with their own implementation of a context menu with their own options. How much work is involved with implementing something like this?
You can't "inherit" the browser context menu. The only way is having your own custom menu.
Quick Googling brings up this plugin for example, which looks pretty neat:
You can also try YUI Menu. In my experience YUI is more browser compatible and extremely well documented. Here's a context menu example
精彩评论