当前位置: 代码迷 >> JavaScript >> javascript兑现禁止右键复制粘贴
  详细解决方案

javascript兑现禁止右键复制粘贴

热度:128   发布时间:2013-03-26 09:54:34.0
javascript实现禁止右键复制粘贴

防拷贝代码(加入BODY中即可,防止右键和CTRL+A)

<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()'>

?

  相关解决方案