function click(){
   if(event.button==2){
   alert('Gracias por su Visita');
    }
}
document.onmousedown=click
