<script language=javascript>
function document.oncontextmenu() {
return false;
}
</script>
function nocontextmenu(){
if(document.all) {
event.cancelbubble=true;
event.returnvalue=false;
return false;
}}
或者
<body onmousedown=rclick() oncontextmenu= nocontextmenu()>
<script language=javascript>
function rclick(){
if(document.all) {
if (event.button == 2){
event.returnvalue=false;
}}}
</script>
2025国考·省考课程试听报名