Horje

Example of HTML oncontextmenu Event Attribute

It will execute a JavaScript when a context menu is triggered.
index.html
Example: HTML
 <div oncontextmenu="myFunction()" contextmenu="mymenu"> 

Output should be:

Example of HTML oncontextmenu Event Attribute



Single Articles
Example of HTML oncontextmenu Event AttributeForm Events Attribute
Definition and Usage of HTML oncontextmenu Event AttributeForm Events Attribute
Browser Support of HTML oncontextmenu Event AttributeForm Events Attribute
Syntax of HTML oncontextmenu Event AttributeForm Events Attribute
Syntax of HTML oncontextmenu Event AttributeForm Events Attribute
Syntax of HTML oncontextmenu Event AttributeForm Events Attribute


Related Articles
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

Type:
Html
Category:
Web Tutorial
Sub Category:
Form Events Attribute
Uploaded by:
Admin