Ver Mensaje Individual
  #7 (permalink)  
Antiguo 22/10/2004, 16:37
angsanchez
 
Fecha de Ingreso: octubre-2004
Ubicación: España
Mensajes: 894
Antigüedad: 19 años, 6 meses
Puntos: 3
Mira, wolf777, lo he probado y funciona también con el alert directo (en IE y en Firefox):

Código HTML:
<table>
<tr><td id="hm_dato">&nbsp;</td></tr>
</table>
<form>
<input type="text" value="" name="dato">
<input type="button" value="Poner dato" onClick="document.getElementById('hm_dato').innerHTML=this.form.dato.value">
<input type="button" value="Leer dato" onClick="alert(document.getElementById('hm_dato').innerHTML)">
</form>