Home » JQuery » JQuery disable right click event

JQuery disable right click event

Q-I want to disable right click event in my web pages. This can be done by using JQuery preventDefault() function.Here is a example, it working for all web browsers.
The preventDefault() method stops the default action of an element from happening.

[stextbox id=”info”]In the IE, this method may not be supported.So you can use the following method.[/stextbox]

According to above, event.preventDefault() just like return false;

More info: http://mootools.net/docs/core/Types/DOMEvent

Tags

Similar posts