How to disable Right Click Menus

This is popular question asked in many tech forums / QA pages.

Simplest way to turn Off the Right Click is

Add the atttibute¬†¬† onContextMenu = “return false”

Ex :

<body onContextMenu=”return false”>

Tested this on

IE 5.0 and above / Firefox 2.0 and above.

PS: This doesn’t alert users with any warning or error messages when they right click. By warning them we dont want to rub their ego to find a solution.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: