Practical JavaScript Technology Summary (1): Shielding class

Source: Internet
Author: User
Tags add delete key key return window
Javascript

One, screen Keyboard all keys


Second, shielding the right mouse button

Add Oncontextmenu=self.event.returnvalue=false to the body tag or:

function Nocontextmenu ()
{
if (document.all) {
Event.cancelbubble=true;
Event.returnvalue=false;
return false;
}
}

Or:


Third, block CTRL + N, SHIFT+F10, F5 refresh, backspace


Four, screen browser in the upper right corner, "Minimize" "" "" Off "key

or open the page with full screen

Note: Add in the body tag
Onbeforeunload= "Javascript:return false"//so that Windows cannot be closed


Five, shielding F5 key


Six, screen IE back button
Use when you link to


Seven, screen main window scroll bar
Add it to the body tag.
Style= "Overflow-y:hidden"


Eight, shielding screen, constantly emptying the clipboard
Add it to the body tag.


Nine, the screen printing function of the website


Ten, shielding IE6.0 picture on the automatic appearance of the Save icon
Method One:

Method Two:


Xi. all script in the screen page



Related Article

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.