障蔽鼠标右键

屏蔽鼠标右键script languagejavascriptfunction block(oEvent){if(window.event){oEvent window.e

屏蔽鼠标右键

<script language="javascript">function block(oEvent){if(window.event){oEvent = window.event;oEvent.returnValue = false;//取消默认事件}elseoEvent.preventDefault();//取消默认事件}document.oncontextmenu = block;</script>