This example uses the HTML DOM to assign an "oncontextmenu" event to a div element.
Right-click inside this box to see the context menu!
Note: The contextmenu attribute only works in Firefox!