开发者

Is it possible to override the context-menu in a browser?

开发者 https://www.devze.com 2023-02-08 07:21 出处:网络
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

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:

Is it possible to override the context-menu in a browser?


You can also try YUI Menu. In my experience YUI is more browser compatible and extremely well documented. Here's a context menu example

0

精彩评论

暂无评论...
验证码 换一张
取 消