When developing a asp.net system, you often need to customize your own browser menus, toolbars. The menu uses Aspnetmenu, as if it is not very stable, and the page is very refreshing, and the toolbar uses Microsoft's Iewebcontrol, the toolbar works fine, but sometimes the event is lost.
The code for the specific mask is as follows:
<script language= "JavaScript" >
function Disablekey ()
{
8 backspace key
CTRL + N
Panax ALT + Direction key ←
ALT + Direction Key →
116 F5 Refresh Key
Ctrl + R
121 SHIFT+F10
115 Shielding Alt+f4
Screen shift plus left mouse button new page open
if (window.event.keycode==8
|| event.keycode==78
|| event.keycode==37
|| event.keycode==39
|| event.keycode==116
|| event.keycode==82
|| event.keycode==121
|| event.keycode==115
|| (Window.event.srcElement.tagName = "A" && Window.event.shiftKey))
{
Alert (' Please do it through the code of Things! ');
Window.event.returnvalue=false;
}
}
</script>
</HEAD>
< body ms_positioning= "GridLayout" >
........................
The code above is basically implemented, and the key value needed to be masked.
It seems to have finished the work, but does every page have to copy the code? Still under consideration!
Please the Master of guidance, it should be said to be a way to structure the system interface problem