|
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
Navigation:
[Reply to this message]
|