L'attribut universel contextmenu correspond à l'identifiant d'un élément

qu'on souhaite utiliser comme menu contextuel pour l'élément courant. In case the context menu key is pressed, the event is triggered on the html element or the currently focused element. Any HTML element can receive this event. Si vous souhaitez contribuer à ces données, n'hésitez pas à consulter. A simple, animated, customizable modal-style context menu (right click menu) implemented in Vanilla JavaScript. ContextmenuJS enables you to create a right-click context menu from an array of menus object, with support for fade in/out animations, custom icons, disabled menu items, and an unlimited amount of menu levels. Execute a JavaScript when the user right-clicks on a
element with a context menu:
Try it Yourself » Le tableau de compatibilité de cette page a été généré à partir de données structurées.

e à le faire après votre première connexion. Une action explicite de l'utilisateur est nécessaire pour activer cette fonctionnalité. Obsolète. Un menu contextuel est un menu qui apparaît suite à une action utilisateur (par exemple un clic-droit). The context menu will slide into your webpage with a fullscreen overlay as you right click on a specific container. For example, consider the HTML: Simple Vanilla JavaScript Context Menu. The contextmenu event is sent to an element when the right button of the mouse is clicked on it, but before the context menu is displayed. Les nouveaux sites web ne doivent pas utiliser cette fonctionnalité. Masquer l’inscription à la lettre d’information, Demander de l'aide pour le développement web, https://github.com/mdn/browser-compat-data, Assessment: Structuring a page of content, From object to iframe — other embedding technologies.

I’ll borrow and tailor a definition from Wikipedia, as it covers it nicely:On your computer, right-clicking on the desktop launches your OS’s native