Right click off on website

// With jQuery
$(document).on({
    "contextmenu": function(e) {
        console.log("ctx menu button:", e.which); 

        // Stop the context menu
        e.preventDefault();
    },
    "mousedown": function(e) { 
        console.log("normal mouse down:", e.which); 
    },
    "mouseup": function(e) { 
        console.log("normal mouse up:", e.which); 
    }
});
<body oncontextmenu="return false;">
body {
    font-family: 'sf-ui-display-light';
    overflow-x: hidden;
    padding-top: 70px;
    background-color: #ffffff;
    color: black;
    user-select: none;
}

Leave a Reply