function GetObj(objName) ... { if(document.getElementById) ...{ return eval('document.getElementById("' + objName + '")'); } else if(document.layers) ...{ return eval("document.layers['" + objName +"']"); } else ...{ return eval('document.all.' + objName); } } < script LANGUAGE = " JavaScript " > function click() ... ... { if (event.button==2) ......{alert('*^_^*'); } } document.onmousedown = click // --> </ script > 上面那段JavaScript源码想必你看得很眼熟吧 ? 对了,那就是蔽置右键的JavaScript. 1为左键,2为右键,3为中间键