This example shows how to prevent a context menu from appearing by canceling the oncontextmenu event handler.
<span style="width: 300px; background-color: blue; color: white;"
>
The context menu never displays when you right-click in this box. </span>