$('#mySurface').unbind('contextmenu').bind('contextmenu', function(e) {
// Do my context menu here
return false; // This overrides the standard behaviour for the browser
});
Is this the best way to go about it? Returning false to suppress the browser context menu seems a little odd.

New Topic/Question
Reply


MultiQuote

|