This example uses the addEventListener() method to attach a "contextmenu" event to a div element.
Right-click inside this box to see the context menu!
Note: The contextmenu attribute only works in Firefox!