How to get/retrieve context menu value after right click with Javascript?
问题 I can't find a related question to give me an idea about how to do this. I've seen some topics about how to know if the right-click button was clicked but I'd like to be able to capture the value that's selected on a context menu after right click. Any idea how I could achieve it? 回答1: 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