Re: How can I prevent right-click context menu?
- Put this in your main code...
YAHOO.util.Event.on(document, 'click', function(e)
if (e.button == 2)
So here I catch the rigt-click and fire my own custom event, then stop
This works :-)
> I'm trying to catch a mouse right-click event and handle it but I keep
> getting the Windows context menu.
> None of...
> in any order, inside the handler, does anything at all. Yes, 'myEvt'
> is the event.
> How can I do this?
> Thanks guys :-)