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
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to