Ver Mensaje Individual
  #2 (permalink)  
Antiguo 27/10/2003, 13:30
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 3 meses
Puntos: 772
Hola, evera. Bienvenido al Foro.

A ver si esto te ayuda:
Código PHP:
<html>
<
head>
<
script>
function 
texto(obj) {
    
elem=document.getElementById('txt');
    
elem.childNodes[0].nodeValue=obj.value;
}
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000">
<input type="button" value="Botón 1" onClick="texto(this)">
<input type="button" value="Botón 2" onClick="texto(this)">
<table><tr>
<td id="txt">&nbsp</td>
</tr></table>
</body>
</html> 
Saludos,