object里面如何屏蔽右键
我的代码如下,执行没有反应,那位有好的方法,谢谢!
<script type="text/javascript" language="javascript">  
function rightKey(){   
         if(event.button==2){        //判断按下的是否是鼠标右键   
             event.returnValue=false;   
             alert("禁止使用鼠标右键!");   
         }   
     }  
</script>
<object id="obj" width=550 height=180 classid="CLSID:106E49CF-797A-11D2-81A2-00E02C015623" onMouseDown="rightKey()">
------解决方案--------------------
事件你应该在106E49CF-797A-11D2-81A2-00E02C015623这个组件里面处理,外面不能处理