Friday 14 November 2014

to hide source code of website to not be copied

Option 1:

<body oncontextmenu="return false">
  ...
</body>

Option 2:

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

</script> 

No comments:

Post a Comment