HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


HTML oncontextmenu Attribute

HTML oncontextmenu Attribute



The oncontextmenu attribute fires when the user right-clicks on an element to open the context menu.


Used With:-


Elements Event
All elements in HTML oncontextmenu




Its syntax is:- < element oncontextmenu="your_script" >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML