document.oncontextmenu = function(){
alert('不允许使用右键!');
return false
}
document.onkeydown = function(){
if( event.ctrlKey && event.keyCode == 67 )
{
alert('不允许使用ctrl+C');
return false;
}
}
alert('不允许使用右键!');
return false
}
document.onkeydown = function(){
if( event.ctrlKey && event.keyCode == 67 )
{
alert('不允许使用ctrl+C');
return false;
}
}
alert('不允许使用右键!');
return false
}
document.onkeydown = function(){
if( event.ctrlKey && event.keyCode == 67 )
{
alert('不允许使用ctrl+C');
return false;
}
}
请问这些东西我就直接写在脚本里面就可以了吗?需要怎么引用呢??
<script>和</script>之间