How to Disable Right Click with Java script



Hi Guys today i am here with a useful script with this java script
you can disable right click for computer users it's mean when someone  try to copy your template codes
he will get  alert sorry right click is disabled



how to use it?

simply pit below script in head section of your web

<script language="javascript"><!--// No rightclick script.// Find more great scripts and applets at the
itzone!// itzone.Ga// Do not delete this header!var message="Sorry,
Right Click Disabled  Copyright © 2015, Itzone.g™ ., All Rights
Reserved"; // Don't edit below!function click(e) {if (document.all)
{if (event.button == 2) {alert(message);return false;}}if
(document.layers) {if (e.which == 3) {alert(message);return
false;}}}if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);}document.onmousedown=click;//
--> </script>


how to use it in blogger? 

 to use it in blogger
go to blogger and login to your account

now click on template


after opening new page click on Edit HTML


after loading page you will see your template code click any where
on the code
and search </head>
by pressing ctrl
+F
now past above code before </head>
and click save template
that's it.

Post a Comment

0 Comments