JQuery disable right click event

0

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

Share.

About Author

Sumith Harshan is the Web Engineer Specializes in Java Script, JQuery, HTML4/5, CSS2/3, PHP, CodeIgniter, CakePHP, J2SE, J2EE, XML, Hacking & Security, Mobile Interface Developing, Magento, Wordpress, Joomla, Drupal,PHPBB,Facebook App Developing and Open cart...etc.