Disable JS Code for shortcuts such as F5 _ typical special effects
Source: Internet
Author: User
Disable ctrl + n and ctrl + r for the JS Code that disables F5 and other shortcut keys, and disable shift + f10 for the right-click or right-click for the JavaScript code that disables f5.
Script
// Disable ctrl + n or ctrl + r or shift + f10 or right-click or left-side or f5
Var oLastBtn = 0, bIsMenu = false
If (window. Event)
{
Document. captureEvents (Event. MOUSEUP );
}
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.