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

 

你可能感兴趣的:(JavaScript)