Reply to Re: Disable right click in opera

Your name:

Reply:


Posted by Michael Fesser on 08/01/07 17:12

..oO(php.ajay@gmail.com)

>In my website there is requirement to disable rightclick.

There's never such a requirement, simply because it's impossible and
doesn't make any sense at all. You can't break the user's GUI nor should
you even try it. If you want to protect something, don't put it on the
Web.

>I am providing the code and it is working in I.E ,Netscape and
>Mozilla.But not working in Opera browser.
>My code is
><body oncontextmenu='return false;'>

All modern browsers have an option to prevent such things.

And BTW: This is one of the reasons why many people hate JavaScript - it
has been abused way too often.

>The above single line code is working very fine in the above browsers
>not in Opera.

Yep, because Opera is a very good and userfriendly browser. :-D

>Please provide the code for opera and remaining browsers .

There's no such code. You should forget that entirely.

>Thanking u
>I am wating for u r answer.

Surely not the answer u wanted 2 get, but the naked truth.

Micha

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация