Disabling Browser Context Menu On A Raphael Paper
I have a Raphael paper defined as R1 = Raphael(0,0, 800, 600); I want to disable context menu on this paper so that I can catch mouse right click event. I don't have it like Raphae
Solution 1:
obj.node.oncontextmenu = function(){ return false; }
Solution 2:
Try attaching this:
/*[Your Element Here]*/.oncontextmenu = function(event){event.preventDefault();}
Catching oncontextmenu
instead of right click.
Also note that the browser's preferences may not allow you to disable contextual menus.
Post a Comment for "Disabling Browser Context Menu On A Raphael Paper"