The oncontextmenu event attribute in HTML is used to specify a JavaScript function or script to be executed when the user right-clicks on an element, triggering the context menu. This event allows developers to customize or prevent the default browser context menu behavior
Example of HTML oncontextmenu Event Attribute
It will execute a JavaScript when a context menu is triggered.