title: Disable Context Menu (Right click) with Javascript
body: <p>I want to disable the right click menu on a table. Because I'm using the rightclick to change the color of it (did a little Battleship game). However I did not found anything that still works. So I would really appreciate your answer :)</p>
  
  <p>This is the call:</p>
  
  <pre><code>&lt;td class="tdBox" onclick="attack(this, ${xStatus.count}, ${yStatus.count})" onmouseover="background(this)" onmouseout="backgroundLeave(this)" oncontextmenu="markField(this)"&gt;
  </code></pre>
  
  <p>and this is the JavaScript function:</p>
  
  <pre><code>function markField(obj) {
      obj.style.backgroundColor = 'blue';
      //return false;
  }
  </code></pre>