js屏蔽鼠标右键
2016-06-29来源:

<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>

推荐信息
Baidu
map