Disable Right Mouse Click Web Dev Help Code Tut

View previous topic View next topic Go down

Disable Right Mouse Click Web Dev Help Code Tut

Post by jamied_uk on 19th May 2016, 21:51

Code:


<script language="javascript">
document.onmousedown=disableclick;
status="Right Click Disabled";
function disableclick(event) {
  if(event.button==2) {
 alert(status);
 return false;
   }
}
</script>

<body oncontextmenu="return false">

</body>


Code Download
https://app.box.com/s/rbtiz5irto9ocdphorvsaz0a811bt1iv


(may not work guaranteed try also using a background and protect the image) see below!

http://jnet.forumn.biz/t1211-protect-images-from-theft-attempts#1631
avatar
jamied_uk
Admin

Posts : 2243
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum