<script type="text/javascript" language="javascript">
/*function cancelKey(){
return false;
}
document.oncontextmenu =cancelKey; */
//禁用右键菜单(方法二)
document.oncontextmenu = function(){return false};
</script>
原文:http://www.cnblogs.com/danmao/p/3825137.html