Shield right mouse button, CTRL + N, SHIFT+F10, F5 refresh, backspace key
function Window.onhelp () {return false}//masking F1 Help
function KeyDown () {
if ((Window.event.altKey) &&http://www.hrbfc120.com
((window.event.keycode==37) | |//SHIELD ALT + arrow key ←
(window.event.keycode==39))) {//masking ALT + arrow key →
Alert ("Do not allow you to use ALT + arrow keys to forward or rewind pages!");
Event.returnvalue=false;
}
Note: This is not really shielded ALT + arrow key, because ALT + arrow key pop-up warning box, ALT key, click off the warning box with the mouse, this shielding method is invalid.
if ((Event.keycode = = 8) &&
(Event.srcElement.type! = "text" &&
Event.srcElement.type! = "TEXTAREA" &&
Event.srcElement.type! = "password") | | Mask BACKSPACE Delete key
(event.keycode==116) | | Mask F5 Refresh Key
(Event.ctrlkey && event.keycode==82)) {//ctrl + R
event.keycode=0;
Event.returnvalue=false;
}
if ((Event.ctrlkey) && (event.keycode==78))//Shielded CTRL + N
Event.returnvalue=false;
if ((Event.shiftkey) && (event.keycode==121))//shielded SHIFT+F10
Event.returnvalue=false;
if (Window.event.srcElement.tagName = = "A" && Window.event.shiftKey)
Window.event.returnvalue = false; Screen shift and left mouse button to open a new page
if ((Window.event.altKey) && (window.event.keycode==115)) {//shielded ALT+F4
Window.showmodelessdialog ("About:blank", "" "," dialogwidth:1px;dialogheight:1px ");
return false;}
}
In addition, the Window.Open method can be used to block all IE menu
The first method:
window.open ("Your. htm", "", "Toolbar=no,location=no,directories=no,menubar=no,
Scrollbars=no,resizable=yes,status=no,top=0,left=0 ")
The second way is to open a full screen page: http://www.120hrb.com
window.open ("Your. asp", "", "Fullscreen=yes")
JavaScript Masking CTRL + N, SHIFT+F10, F5 refresh, backspace key