Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/04/2010, 17:10
Avatar de eljuanlp
eljuanlp
 
Fecha de Ingreso: agosto-2005
Ubicación: La Plata, Argentina.
Mensajes: 32
Antigüedad: 18 años, 8 meses
Puntos: 0
Pregunta sobre innerHTML y boton

buenas amigos, tengo un cuadro de texto, al cual le pones un texto y apretando un boton lo pone en un div. Pero no me funciona

Código:
function texttitulo(untexto) {
document.getElementById("titulo").innerHTML = untexto; 
}
Código HTML:
<div id="titulo">amigos</div>

<form name="miform" action="" method="get">
Texto del titulo: <input type="text" name="textotitulo2" value="amigos">
<input type="button" onClick="texttitulo(textotitulo2)" value="Mandar">
</form> 

Desde ya muchas gracias !!!!