that base info, that not a complete code... see the web link provided with info regarding these two codes, that are still ways to "stop this".....
but here is a working html code, you can drop into the different template tab
<head>
<script language="javascript">
// 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);
}
});
</script>
<script language="javascript">
document.addEventListener("contextmenu", function(e){
e.preventDefault();
}, false);
</script>
</head>
<body>
<p> test, you can't mousr click </p>
</body