HTML页面内容禁止选择、复制、右键

view plain copy to clipboard print ?
  1. <body leftmargin=0 topmargin=0  oncontextmenu='return false' ondragstart='return false' onselectstart ='return false' onselect='document.selection.empty()' oncopy='document.selection.empty()' onbeforecopy='return false' onmouseup='document.selection.empty()'>  
<body leftmargin=0 topmargin=0  oncontextmenu='return false' ondragstart='return false' onselectstart ='return false' onselect='document.selection.empty()' oncopy='document.selection.empty()' onbeforecopy='return false' onmouseup='document.selection.empty()'>
关键就在
view plain copy to clipboard print ?
  1. oncontextmenu='return false'  
  2. ondragstart='return false'    
  3. onselectstart ='return false'    
  4. onselect='document.selection.empty()'    
  5. oncopy='document.selection.empty()'    
  6. onbeforecopy='return false'    
  7. onmouseup='document.selection.empty()'  

你可能感兴趣的:(HTML页面内容禁止选择、复制、右键)