Although it's easily circumnavigable, you'd be surprised how many clients ask
for it, because they believe that it makes their images 'unsaveable'.
Another reason is custom context menus, and you don't want the default
context menu to get in the way. An example of this would be Microsoft Live
Mail, which uses custom right click menus.
Does that answer your question?
Joan Piedra wrote:
>
> To disable or modify a client element just because you feel like it is not
> that useful.
> Why would you like to disable the right button anyway?
>
> Usability vs developer.. that's though
>
>
> On 2/11/07, Dan Atkinson <[EMAIL PROTECTED]> wrote:
>>
>>
>> Feel free to jQuerify this:
>>
>>
>> function click(e)
>>
>> {
>>
>> if (document.all)
>>
>> {
>>
>> if (event.button==2||event.button==3)
>>
>> {
>>
>> //IE
>>
>> //right click has been clicked
>>
>> //Return false will disabled
>>
>> return false;
>>
>> }
>>
>> }
>>
>> else
>>
>> {
>>
>> if (e.button==2||e.button==3)
>>
>> {
>>
>> //FF
>>
>> //right click has been clicked
>>
>> //Return false will disable
>>
>> e.preventDefault();
>>
>> e.stopPropagation();
>>
>> return false;
>>
>> }
>>
>> }
>>
>> }
>>
>>
>> if (document.all)//IE
>>
>> document.onmousedown=click;
>>
>> else //FF
>>
>> document.onclick=click;
>>
>>
>>
>> It's pretty much just a right click disabler which won't allow right
>> clicking in Firefox.
>> --
>> View this message in context:
>> http://www.nabble.com/Right-Click-Plugin---Function-tf3043202.html#a8915982
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> jQuery mailing list
>> [email protected]
>> http://jquery.com/discuss/
>>
>
>
>
> --
> Joan Piedra || Frontend webdeveloper
> http://joanpiedra.com/
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
--
View this message in context:
http://www.nabble.com/Right-Click-Plugin---Function-tf3043202.html#a8925442
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/