HTML contextmenu attribute
Example
Specifies the
context menu of an element. The context menu is displayed when the user right-clicks the element:
Try it »
Browser support





Currently only the Firefox browser supports the contextmenu attribute.
Definition and Usage
The contextmenu attribute specifies the context menu of an element. The context menu is displayed when the user right-clicks the element. /p>
The value of the contextmenu attribute is the id of the
HTML Global Attributes