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 !!!!