<div class="htmlarea"> <textarea id="runcode63424"> <span id="abc">[把鼠标放在这里单击右键试试]</span> <script language="javascript"> function click() { if(event.button == 2) { alert("右键被屏蔽"); } } document.getElementById("abc").onmousedown=click </script> </textarea><br><input onclick="runEx('runcode63424')" type="button" value="运行代码"> <input onclick="doCopy('runcode63424')" type="button" value="复制代码"> <input onclick="doSave(runcode63424)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>