I found so many questions about this topic
and there were so many valid working answers using CSS
but I would like a javascript solution and preferably using jQuery
am trying this code to baby step it and debug the issue:
$(document).ready(function() {
$('body').mousedown(function(e) {
if (e.which == 3)
alert('test')
})
})
I tried this just to see if it works, and I got the alert
so, up to this point all is good.
later on I try to change alert('test')
with e.preventDefault()
or with return false;
and it doesn't work anymore
where is the problem, and why ?
am on chrome latest update until the moment of writing this if needed to know.