Questions tagged [contextmenu]

A context menu is a menu in a graphical user interface that appears upon user interaction, such as a right mouse click or middle click mouse operation.

A context menu is a menu in a graphical user interface that appears upon user interaction, such as a right mouse click or middle click mouse operation. A context menu offers a limited set of choices that are available in the current state, or context, of the operating system or application. Usually the available choices are actions related to the selected object.

Source: Wikipedia

4260 questions
340
votes
20 answers

How to add a custom right-click menu to a webpage?

I want to add a custom right-click menu to my web application. Can this be done without using any pre-built libraries? If so, how to display a simple custom right-click menu which does not use a 3rd party JavaScript library? I'm aiming for something…
Registered User
  • 7,674
  • 8
  • 28
  • 39
160
votes
15 answers

How to add a "open git-bash here..." context menu to the windows explorer?

How to add a context (aka right click) menu to the windows explorer that, when clicked, opens the git-bash console in the current explorer folder?
sergej
  • 14,042
  • 6
  • 38
  • 75
145
votes
5 answers

How to disable right-click context-menu in JavaScript

Not that I'm trying to prevent 'View Source' or anything silly like that, but I'm making some custom context menus for certain elements. EDIT: response to answers: I've tried this: