![]() |
The |
Example:
HTML
<div oncontextmenu="myFunction()" contextmenu="mymenu">
The oncontextmenu attribute fires when the user right-clicks on an element to open the context menu.
Note: Although the oncontextmenu event is supported in all browsers, the contextmenu attribute is currently only supported in Firefox.
<element oncontextmenu="script">
<element oncontextmenu="script">
<element oncontextmenu="script">
html event attributes |
List of Form Events Attribute | Form Events Attribute |
HTML onblur Event Attribute | Form Events Attribute |
HTML onchange Event Attribute | Form Events Attribute |
HTML oncontextmenu Event Attribute | Form Events Attribute |
Example of HTML oncontextmenu Event Attribute | Form Events Attribute |
Definition and Usage of HTML oncontextmenu Event Attribute | Form Events Attribute |
Browser Support of HTML oncontextmenu Event Attribute | Form Events Attribute |
Syntax of HTML oncontextmenu Event Attribute | Form Events Attribute |
Syntax of HTML oncontextmenu Event Attribute | Form Events Attribute |
Syntax of HTML oncontextmenu Event Attribute | Form Events Attribute |
Read Full: | Form Events Attribute |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | Form Events Attribute |
Uploaded by: | Admin |
Views: | 22 |
Reffered: https://www.w3schools.com/tags/ev_oncontextmenu.asp