document.onclick = function(){
   alert("谢谢");
   return true;
};在IE 没有问题 在火狐 右键都能点击出啦???

解决方案 »

  1.   


    document.onclick = function(oEvent){
      oEvent = oEvent || window.event;
      if(oEvent.button == 0){
        alert("谢谢");
      }
      return true;
    };
      

  2.   

    window.event为ie中的鼠标事件
    oEvent为ff中的鼠标事件
    oEvent=oEvent||window.event  表示兼容ie和ff的鼠标事件
    oEvent.button 猜想也知道是鼠标的左键咯。
      

  3.   

    http://www.52css.com/article.asp?id=987
    看来这个链接是万能的自己看看先~~会有所领悟的