  document.oncontextmenu=new Function("event.returnValue=false;"); //禁止右键功能,单击右键将无任何反应 
 
  document.onselectstart=new Function("event.returnValue=false;"); //禁止选择,也就是无法复制 
// JavaScript Document