Aug 10
25
When working on complex applications with jQuery you get to a point where you need to have your own right click menu.
You have the options to disable entire page right click menu or just for a div.
Disable for the entire document:
-
$(document).ready(function()
-
{
-
$(document).bind("contextmenu",function(e){
-
return false;
-
});
-
});
Disable for a div:
-
$(document).ready(function()
-
{
-
$(‘#my_div’).bind("contextmenu",function(e){
-
return false;
-
});
-
});