using left and rightclick, browser contextual menu

using left and rightclick, browser contextual menu

Hi all,

I have an anchor I've bound a click event to. When you click it, it checks with "which" wether it was the left or the right mousebutton you clicked. That's all good but on a right click I also get the browsers contextual menu. Is there a way to disable that in the following code I'm using? I've tried return false which doesn't work...

$('.user li a').live('click', function(e)
{
if(e.which===1)
{
alert("left");
}
else if(e.which===3)
{
alert("right");
return false; // doesn't work :(
}
return false; //ignore the anchors href attribute
});