鎖滑鼠右鍵
範例 → 請按右鍵
把以下語法放在<head><head>之間
先全選再按Ctrl+C複製語法
<SCRIPT Language="JavaScript"> function MM_displayStatusMsg(msgStr) { //v2.0 status=msgStr; document.MM_returnValue = true; } function click() { if (event.button==2) { alert('不要拿我的東東呀!'); } } document.onmousedown=click </SCRIPT>
說明 把紅色的字改成自己喜歡的 alert('不要拿我的東東呀!');