Skip to main content

How to Disable F12 key Using JavaScript

How to Disable F12 key Using JavaScript

How to Disable F12 key Using JavaScript: In this Article you can get the JavaScript code of Disable the Function key F12. so no one can use inspect element and he/she can see your website source code your website sources using Function key. Many of the Copy Cats are copying your content still you use Disable copy/ paste JavaScript or CSS code on your blog. They copy your content line by line using F12 function key so that's why this JavaScript code is play very important role to save your contents from Copy/Cats.
You can see The Disable CSS selection Code Also you can See the Disable JavaScript Copy Paste Code.
Here is the  Disable F12 key Using JavaScript Code.
<script language="JavaScript">
//////////F12 disable code twotricks.com////////////////////////
    document.onkeypress = function (event) {
        event = (event || window.event);
        if (event.keyCode == 123) {
           //alert('No F-12');
            return false;
        }
    }
    document.onmousedown = function (event) {
        event = (event || window.event);
        if (event.keyCode == 123) {
            //alert('No F-keys');
            return false;
        }
    }
document.onkeydown = function (event) {
        event = (event || window.event);
        if (event.keyCode == 123) {
            //alert('No F-keys');
            return false;
        }
    }
/////////////////////end///////////////////////
</script>
 You just need to paste this code on your above your website </head> tag.

Comments

  1. Can we remove inspect element from our page....!

    ReplyDelete
    Replies
    1. You can disable F12 Function Key using this JavaScript

      Delete

Post a Comment

Popular posts from this blog

How To Start A Blog And Make It Successful

How To Start A Blog And Make It Successful : If you are a new blogger and you don't know about blogging and you want to make it successful then you must know about some important thing otherwise you can not get desire output from your blog. and you waste your all efforts and time on blog. Read some my Experience Suggestion below. How To Start A Blog And Make It Successful Never Use Free Blogger Theme:  First Remember one thing never use free themes you are on WordPress or blogger doesn't matter don't use free themes because they are not develop accordingly today requirement few themes are not even not responsive and also not SEO friendly. if you want your blog go viral on social media and google then please be original write your own content and must post that contents which audience demand. But if your theme is not good you may right your own contents but finally your google can't understand your posts and it take long time in indexing also due to e...

How To Install WAMP Server and Configure in Windows

How To Install WAMP Server and Configure in Windows : Many students don't know how to install and configure WAMP on their computer so In this Tutorial your learn how you can install WAMP server on your Windows 10, Windows 8.1 , Windows 8, Windows 7. Follow few steps to Install WAMP Server in your System. First you need to download the WAMP server. Here visit below link. http://www.wampserver.com/en/ After download Run setup and install WAMP Server on your Computer. Click next. it will install it self. After installation run WAMP server on your computer and check tray icon is green or red. Green Color means WAMP is online. Red Color means WAMP is not Running. In above image you can see the green color wamp icon and options of WAMP server.  If you click on put offline the server goes offline. http://localhost/ Open localhost and you can see the main screen of Wamp server. WAMP  is stand for  Windows Apache Mysql PHP . Some developers use localhos...

How to use WhatsApp Web

How to use WhatsApp Web: Whatsapp Use on web, Whatsapp web download, Whatsapp web login, Whatsapp web app, how to use Whatsapp via web. In This Article we teach you about Whatsapp web access. Its Very Simple to use Whatsapp on your laptop Browser. You just need to follow few steps to open whats app on your laptop or on your desktop PC. You can open Whatsapp on your Browser Visit http://web.whatsapp.com . Its looks like below image. Open Whatsapp On your cell phone. Open Options > Click on WhatsApp Web. Now your cell phone camera is automatically open. you just need to SCAN the code. With in 2 second your login to your WhatsApp Account on your laptop or your Desktop Computer. Your Login windows is looks like above image, give your feedback in comments and share this post with your friends thanks.