Saturday , April 29 2017
Home / js / How to Disable Right Click with Java script

How to Disable Right Click with Java script

How to Disable Right Click with Java script  and html. 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 Disable Right Click with Java script

Disable Right Click

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

How to Disable Right Click with Java script

After opening new page click on Edit HTML.

How to Disable Right Click with Java script
How to Disable Right Click with Java script

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. Hope now you able to How to Disable Right Click with Java script  and html. That’s it.

Check Also

How To Add Keyboard button effect

hi friends welcome to 92tricksyou have seen many times  a keyboard buttonsstyle in some blogger …

Leave a Reply

Your email address will not be published. Required fields are marked *