<script>
//禁止ctrl+n和禁止ctrl+r和禁止shift+f10禁止鼠标右键or左右键和禁止f5
var oLastBtn=0,bIsMenu=falseif (window.Event)
{
document.captureEvents(Event.MOUSEUP);
}function nocontextmenu()
{
event.cancelBubble=true;
event.returnValue=false;
return false;
}
function norightclick(e) {
if(window.Event)
{
if (e.which !=1)
{
return false;
}
}
else
if(event.button!=1)
{
event.cancelBubble=true;
event.returnValue=false;
return false;
}
}document.oncontextmenu=nocontextmenu;
document.onmousedown=norightclick; function onKeyDown()
{
if ((event.altKey)||((event.keyCode==8)&&(event.srcElement.type!="text"&&event.srcElement.type!="textarea"&&event.srcElement.type!="password"))||((event.ctrlKey)&&((event.keyCode==78)||(event.keyCode==82)))||(event.keyCode==116))
{
event.keyCode=0;
event.returnValue=false;
}
}
</script>
<body onkeydown="onKeyDown()">----------------------------------------------------------------要去除菜单条、工具条和状态条等,只能是新打开一个窗口
window.open("url","","menubar=no,location=no,status=no,toolbar=no"
具体的你可以查一查msdn,那里比较详细
//禁止ctrl+n和禁止ctrl+r和禁止shift+f10禁止鼠标右键or左右键和禁止f5
var oLastBtn=0,bIsMenu=falseif (window.Event)
{
document.captureEvents(Event.MOUSEUP);
}function nocontextmenu()
{
event.cancelBubble=true;
event.returnValue=false;
return false;
}
function norightclick(e) {
if(window.Event)
{
if (e.which !=1)
{
return false;
}
}
else
if(event.button!=1)
{
event.cancelBubble=true;
event.returnValue=false;
return false;
}
}document.oncontextmenu=nocontextmenu;
document.onmousedown=norightclick; function onKeyDown()
{
if ((event.altKey)||((event.keyCode==8)&&(event.srcElement.type!="text"&&event.srcElement.type!="textarea"&&event.srcElement.type!="password"))||((event.ctrlKey)&&((event.keyCode==78)||(event.keyCode==82)))||(event.keyCode==116))
{
event.keyCode=0;
event.returnValue=false;
}
}
</script>
<body onkeydown="onKeyDown()">----------------------------------------------------------------要去除菜单条、工具条和状态条等,只能是新打开一个窗口
window.open("url","","menubar=no,location=no,status=no,toolbar=no"
具体的你可以查一查msdn,那里比较详细
//禁止ctrl+n和禁止ctrl+r和禁止shift+f10禁止鼠标右键or左右键和禁止f5
var oLastBtn=0,bIsMenu=falseif (window.Event)
{
document.captureEvents(Event.MOUSEUP);
}function nocontextmenu()
{
event.cancelBubble=true;
event.returnValue=false;
return false;
}
function norightclick(e) {
if(window.Event)
{
if (e.which !=1)
{
return false;
}
}
else
if(event.button!=1)
{
event.cancelBubble=true;
event.returnValue=false;
return false;
}
}document.oncontextmenu=nocontextmenu;
document.onmousedown=norightclick; function onKeyDown()
{
if ((event.altKey)||((event.keyCode==8)&&(event.srcElement.type!="text"&&event.srcElement.type!="textarea"&&event.srcElement.type!="password"))||((event.ctrlKey)&&((event.keyCode==78)||(event.keyCode==82)))||(event.keyCode==116))
{
event.keyCode=0;
event.returnValue=false;
}
}
</script>
<body onkeydown="onKeyDown()">----------------------------------------------------------------要去除菜单条、工具条和状态条等,只能是新打开一个窗口
window.open("url","","menubar=no,location=no,status=no,toolbar=no"
具体的你可以查一查msdn,那里比较详细