JSFiddle - React, Tailwind, and code Playground

by chridam

HTML

<p id="pid"> Right click to test!</p>

CSS

body { background-color: #000; font: 16px Helvetica, Arial; color: #fff; }

JavaScript

$(document).ready(function(){
  $("#pid")[0].oncontextmenu = function() {return false;};
    $(document).mousedown(function(e){
      
      if( e.which == 3 ) {
         //alert(e.which);
         return false;
        }

    });
});