Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/12/2013, 14:06
PHPeros
Colaborador
 
Fecha de Ingreso: septiembre-2013
Ubicación: España
Mensajes: 3.648
Antigüedad: 10 años, 7 meses
Puntos: 578
Respuesta: Menu contextual con botón derecho del ratón

Le pasas un parámetro llamado "event" a esa función y añades esto dentro:

Código Javascript:
Ver original
  1. if(event.button==2){
  2. // hacer algo
  3. }else{
  4. event.preventDefault();
  5. }

Espero haberte ayudado