Disable right clik on blogger


SUBMITTED BY: estobayus

DATE: April 29, 2018, 11:45 a.m.

FORMAT: JavaScript

SIZE: 666 Bytes

HITS: 340

  1. <script language=JavaScript>
  2. <!--
  3. //edit by estobayus online
  4. var message="PUT YOUR MESSEGE HERE";
  5. ///////////////////////////////////
  6. function clickIE4(){
  7. if (event.button==2){
  8. alert(message);
  9. return false;
  10. }
  11. }
  12. function clickNS4(e){
  13. if (document.layers||document.getElementById&&!document.all){
  14. if (e.which==2||e.which==3){
  15. alert(message);
  16. return false;
  17. }
  18. }
  19. }
  20. if (document.layers){
  21. document.captureEvents(Event.MOUSEDOWN);
  22. document.onmousedown=clickNS4;
  23. }
  24. else if (document.all&&!document.getElementById){
  25. document.onmousedown=clickIE4;
  26. }
  27. document.oncontextmenu=new Function("alert(message);return false")
  28. // -->
  29. </script>

comments powered by Disqus