日期:2014-05-16  浏览次数:20337 次

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

?