Web page right mouse button is disabled and another method

Source: Internet
Author: User
Tags copy key
Disable | crack | mouse | web | right button

When you encounter a Web page with exquisite pictures or wonderful text you want to save, you usually select the target and then press the right mouse button and choose "Picture Save as" or "copy" in the pop-up menu to achieve our goal. However, there are many Web pages are blocked right mouse button, so that we press the right mouse button will pop up a window, which is written on the copyright of XXX, prohibit the use of the right button and so on, which we have become accustomed to.

In fact, this is due to the inclusion of the following code in the Web page file:

In this way when browsing the Web page, in addition to click the left mouse button, any other form of mouse click or combination of clicks, will appear "Copyright (C), is strictly prohibited copy!" The Prompt box.

For the above right mouse button disabled cracking is very easy, by selecting the target and then pressing the right mouse button on the target, the prompt window will pop up, don't release the right button, move the mouse pointer over the prompt window's OK button, and then press the left button. Now release the left mouse button, limit the window is closed, and then move the mouse to the target release of the right mouse button, oh, the right mouse button pop-up menu, limit canceled!

In addition, we can also press SHIFT+F10 or press the keyboard and the right side of the CTRL key next to the key, you can easily crack above the right mouse button shielding.

Recently in a person's web page has encountered a new shielding method, using the above methods are not valid. The key code is as follows:


Add the above code to your Web page, and then you can try the right button, no matter what? Try again by SHIFT+F10? Or not! Another trick: Press the keyboard and the right side of the CTRL key next to the key to try, alas, also not the spirit. Wait a minute, I still have a trick that doesn't work! The right mouse button screen in the right button, the warning window, this time do not release the right button, with the left hand press on the keyboard alt+f4 key combination, then the prompt window was we closed, release the right mouse button, or no response! I think this is a "miss"! It doesn't even work anymore!

Can not hurry, and then use their brains, since it can use JavaScript restrictions on our right mouse button, we should be able to use JavaScript to crack it! Take a closer look at the above code, the key is this sentence: "Document.oncontextmenu=stop", if we can let the "stop" the failure of the successful crack it? OK, let's try, the specific method is:

In the browser address bar, type "Javascript:alert (document.oncontextmenu= ')" (do not enter double quotes when entering), a dialog box pops up, click "OK" button, Then click the right mouse button on your target (picture or text) to see the pop-up menu!

This is the so-called "to the way, but also to the body," and encountered the above mentioned situation, we might as well try!



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.