How to prevent Right Click option using jquery?



How to prevent Right Click option using jquery?..

Answer / Uzair Ahmad Ansari

To prevent the right-click context menu with jQuery, you can use the following code:

```javascript
$(document).bind('contextmenu', function(e) {
e.preventDefault();
});
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

Which sign is used as a shortcut for jQuery?

1 Answers  


Explain the use of the .pushstack() method.

1 Answers  


What is the difference between onload() and document.ready() function used in jquery?

1 Answers  


What is the basic requirement to start with the jquery?

1 Answers  


explain bind() vs live() vs delegate() methods in jquery

1 Answers  


What is a use of jquery filter?

1 Answers  


Whether C# code behind can be called from jQuery?

1 Answers  


Can you call C# code-behind method using jQuery? If yes,then how?

1 Answers  


Difference between detach and remove? : jQuery Mobile

1 Answers  


What to do to select element having a particular class (".selected")? : jquery mobile

1 Answers  


What is the struts2 jquery plugin and its advantages.

1 Answers  


Why are not some scripts and styles loading? : jquery mobile

1 Answers  


Categories