Steps to reproduce
Internet Explorer and Edge do not support the HTML5 context menu elements.
As a web developer, I want to create custom context menu entries in order to provide my users with advanced controls without having to completely disable the default context menu.
At the moment, if I want to give users custom context menus I have to listen for
contextmenu events, call
event.preventDefault() to prevent the default menu from appearing, and create a custom context menu in JS/HTML/CSS. Unfortunately, this prevents the user from leveraging any standard “right-click” behavior such as "View source", "Select all", or “Ask Cortana.” HTML 5’s context menu provides the best of both worlds: allow site-specific behaviors while preserving the user’s standard UI controls.
- 4.11.3 The menu element
- 4.11.4 The menuitem element
- 4.11.5 Context menus
- HTML5 Context Menus on davidwalsh.name
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “Brad E.”
Changed Status to “By design”