I know that you can add context menu items(currently only in Firefox) but can you replace the context menu entirely with items specified?
By that I mean that if I create a context menu with:
- Action 1
- Action 2
Then when opening the context menu ONLY those items would appear.
I also mean according to the HTML5 menu element specification and not current implementations.
No, HTML5 doesn’t and you can’t. An important reason for having the menu element affect the context menu was to allow authors to be able to put operations on the context menu without disrupting all the facilities that are built into the browser and are important to the user. So allowing the web page author to remove the existing context menu options would defeat the point.