Javascript – NoobSpot https://noobspot.com Perfect Blogging Guide Sat, 08 Jun 2019 14:17:32 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.1 https://noobspot.com/wp-content/uploads/2019/06/apple-icon-152x152-152x150.png Javascript – NoobSpot https://noobspot.com 32 32 How To Disable Right Click & F12 Key on a Website (Latest) https://noobspot.com/how-to-disable-right-click-f12-key-on-a-website-latest/ https://noobspot.com/how-to-disable-right-click-f12-key-on-a-website-latest/#respond Mon, 06 May 2019 03:41:24 +0000 https://noobspot.com/?p=8 Disable Right Click & F12 Key on a Website: Hi in an Article, How to disable right click javascript to avoid content copying. How To Add For WordPress Just copy and paste below code into your website head section, so goto Appearance, Editor and find the header.php file and paste below code above </head>. For Google […]

The post How To Disable Right Click & F12 Key on a Website (Latest) appeared first on NoobSpot.

]]>
Disable Right Click & F12 Key on a Website: Hi in an Article, How to disable right click javascript to avoid content copying.

How To Add

For WordPress

Just copy and paste below code into your website head section, so goto Appearance, Editor and find the header.php file and paste below code above </head>.

For Google Blogger

Just copy and paste below code into your website head section, so go to Themes and then to edit HTML, paste code above </head>.

For Custom Website(PHP, HTML)

Just copy and paste below code into your website head section, so go to edit HTML, paste code above </head>.

Javascript Code

For Disabled Right Click And F12 key

<script>
window.oncontextmenu = function () {
return false;
}
$(document).keydown(function (event) {
if (event.keyCode == 123) {
return false;
}
else if ((event.ctrlKey && event.shiftKey && event.keyCode == 73) || (event.ctrlKey && event.shiftKey && event.keyCode == 74)) {
return false;
}
});
</script>

For Disabling Copy Text

-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently */

Thanks For Visiting, Team NoobSpot.Com

The post How To Disable Right Click & F12 Key on a Website (Latest) appeared first on NoobSpot.

]]>
https://noobspot.com/how-to-disable-right-click-f12-key-on-a-website-latest/feed/ 0