Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/10/2010, 07:21
Avatar de _cronos2
_cronos2
Colaborador
 
Fecha de Ingreso: junio-2010
Mensajes: 2.062
Antigüedad: 13 años, 11 meses
Puntos: 310
Respuesta: Boton que cambie la funcion de otro boton

Prueba así:
Código Javascript:
Ver original
  1. var boolean=false;
Código HTML:
Ver original
  1. <button onclick='boolean=true;'>Cambiar función</button>
  2. <button onclick='boolean?funcion1():funcion2();'>...</button>
Saludos (:
__________________
" Getting older’s not been on my plans
but it’s never late, it’s never late enough for me to stay. "
Cigarettes - Russian Red