在需要右键的地方加上

代码片段
1 行
onmousedown="righthit()";
代码片段
7 行
funciton righthit(){
    if (event.button==2)
    { 
        //DoSomeThing
    }
 
}