Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/10/2006, 11:02
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Hola Nateskin

Prueba este ejemplo:

Código PHP:
<html>
<
head>
<
script type="text/javascript">
function 
accion1(obj) {
  
alert('Hola');
  
obj.onclick = function() {accion2()}
}
function 
accion2() {
  
alert('Adios');
}
</script>
</head>
<body>
<input type="button" onclick="accion1(this)" />
</body>
</html> 
Saludos,