How to get/retrieve context menu value after right click with Javascript?

北战南征 提交于 2019-12-02 05:15:22

In a browser, you can:

a) ignore the right click and let the browser itself handle it (which usually means a context menu will be shown)

XOR

b) handle the right click yourself, which means that the browser won't show its context menu.

You can't have both a) and b), they're mutually exclusive. If you want a right-click context menu on a webpage, you need to fake it yourself - for example, see this tutorial and the result.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!