中文(繁体)
<!-- 將以下程式碼放到<body>區域中--> <script language="JavaScript"> <!-- if (window.Event) document.captureEvents(Event.MOUSEUP);函數 nocontextmenu() { event.cancelBubble = true event.returnValue = false;返回假; } function norightclick(e) { if (window.Event) { if (e.which == 2 || e.which == 3) return false; } } else if (event.button == 2 || event.button == 3) { event.cancelBubble = true event.returnValue = false;返回假; } } document.oncontextmenu = nocontextmenu; // 對於 IE5+ document.onmousedown = norightclick; // 對於所有其他 //--> </script>