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/

Reply via email to