禁止左右键复制

这是在某个网站中找到的代码,帮助那些不知道怎么使用Script的新手。

<SCRIPT LANGUAGE=javascript>
function click() {
alert('禁止你的左键复制!') }
function click1() {
if (event.button==2) {alert('禁止右键点击~!') }}
function CtrlKeyDown(){
if (event.ctrlKey) {alert('不当的拷贝将损害您的系统!') }}
document.onkeydown=CtrlKeyDown;
document.onselectstart=click;
document.onmousedown=click1;
</SCRIPT>
原文地址:https://www.cnblogs.com/shenjingwa/p/14124359.html