Answer: First, include the jQuery library in head section like below:-
<script src = "Jquery-1.8.0.min.js" type = "text/JavaScript"></script>
Now write below code:-
<script type="text/JavaScript">
$(function()
{
$(this).bind(“contextmenu”, function(e)
{
e.preventDefault();
});
});
</script>
Asked In: Many Interviews |
Alert Moderator