title: Disable right-click menu in chrome
body: <p>I'm writing aWebGL game and want to use right-click as a control. However, it throws up a menu. Is it possible to disable that? I've tried</p>
  
  <pre><code>} 
  else if (event.which == 2 || event.which == 3) 
  {
      doRightClickControl();
      event.preventDefault();
      event.stopPropagation();
  
      return false;
  }
  </code></pre>
  
  <hr>
  
  <p>Thanks dknaack for the hint. I got it to work like this:</p>
  
  <pre><code>window.oncontextmenu = function(event) {
      event.preventDefault();
      event.stopPropagation();
      return false;
  };
  </code></pre>