My learning 0 of 20 lessons complete
Start lesson 1 →
spec 1 linked patterns checked

Element: contextmenu event

Documents the contextmenu event as firing when users attempt to open a context menu, usually through right click or the context menu key, with browser compatibility caveats.

Read with a purpose

What this source can teach

Use this source to check a technical or accessibility requirement against its exact wording and scope.

  1. Start with the original. Open the source and find the guidance or example relevant to your task.
  2. Trace the connection. Use the claim notes below to see how this site applies the source to specific patterns.
  3. Check the setting. Compare the source's platform, people, and constraints with your own decision.

Pattern Decisions This Source Supports

Pattern Supported decision Required contract Claim note
Context menu Choose context menu when commands are specific to the object, selection, or location where the user invoked the menu. The menu opens only for the object, selection, or location that invoked it. Supports right-click and context-menu-key invocation plus compatibility cautions.

Evidence Role

This source is treated as spec evidence. Its value comes from the specific claims and setting described above.

Publisher: MDN Web Docs. Last checked: .

Saved items