title: capturing simultaneous left and right mouse button clicks in javascript
body: <p>What is the best way to capture a left AND right mouse click in javascript? I'm not using jQuery (it's next on my to-learn list), just javascript for now. Basically, I want to do something like </p>
  
  <pre><code> onClick()=javascript:rightClickFunction() // do right click function
   onContextMenu()=javascript:leftClickFunction() /
   onBoth() ???
  </code></pre>
  
  <p>The only thing I could find on stackoverflow was:
  <a href="https://stackoverflow.com/questions/1206203/how-to-distinguish-between-left-and-right-mouse-click-with-jquery">How to distinguish between left and right mouse click with jQuery</a> </p>
  
  <p>How should I capture the double-button click? Can i check if the opposite button is also clicked during the R and L button routines?</p>