Shielding F5, CTRL + N, ALT+F4 source

Source: Internet
Author: User
Tags key window

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



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.