function click() 
{ if (event.button==2) 
  { alert('Code source non accessible ! !');
  }
}
document.onmousedown=click;