<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<p>
<span>购买数量 :</span><input type="text">
</p>
<p>返回底部</p>
<p>hello001</p>
<p>hello002</p>
<p>hello003</p>
<p>hello004</p>
<p>hello005</p>
<p>hello006</p>
<p>hello007</p>
<p>hello008</p>
<p>hello009</p>
<p>hello010</p>
<p>hello011</p>
<p>hello012</p>
<p>hello013</p>
<p>hello014</p>
<p>hello015</p>
<p>hello016</p>
<p>hello017</p>
<p>hello018</p>
<p>hello019</p>
<p>hello020</p>
<p>hello021</p>
<p>hello022</p>
<p>hello023</p>
<p>hello024</p>
<p>hello025</p>
<p>hello026</p>
<p>hello027</p>
<p>hello028</p>
<p>hello029</p>
<p>hello030</p>
<p>hello031</p>
<p>hello032</p>
<p>hello033</p>
<p>hello034</p>
<p>hello035</p>
<p>hello036</p>
<p>hello037</p>
<p>hello038</p>
<p>hello039</p>
<p>hello040</p>
<p>hello041</p>
<p>hello042</p>
<p>hello043</p>
<p>hello044</p>
<p>hello045</p>
<p>hello046</p>
<p>hello047</p>
<p>hello048</p>
<p>hello049</p>
<p>hello050</p>
<script>
document.onkeydown=function(){
var e = window.event||arguments[0];
if(e.keyCode==123){
alert('请尊重劳动成果!www.abc.com');
return false;
}else if((e.ctrlKey)&&(e.shiftKey)&&(e.keyCode==73)){
alert('请尊重劳动成果!www.abc.com');
return false;
}else if((e.ctrlKey)&&(e.keyCode==85)){
alert('请尊重劳动成果!www.abc.com');
return false;
}else if((e.ctrlKey)&&(e.keyCode==83)){
alert('请尊重劳动成果!www.abc.com');
return false;
}
}
document.oncontextmenu=function(){
alert('请尊重劳动成果!www.abc.com');
return false;
}
</script>
</body>
</html>
结果如下: