Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/12/2008, 19:58
Avatar de Fernand0
Fernand0
 
Fecha de Ingreso: septiembre-2005
Ubicación: Buenos Aires
Mensajes: 610
Antigüedad: 19 años, 4 meses
Puntos: 19
Respuesta: pulsar una tecla y que lo escriba en una pantalla

Código PHP:
<HTML>
<
HEAD>
<
TITLEForo</TITLE>
</
HEAD>

<
BODY>
<
script type="text/javascript">

function 
send(bytosendwin) {
    var 
to=document.getElementById(tosend);
    var 
win=document.getElementById(win);
    
win.innerHTML+=by+': '+to.value+'\n';
    
to.value=''to.focus();
}

</script>

<style type="text/css">

label {display:block}

</style>

</head>
<body>
<div>
<textarea id="win" cols="60" rows="6"></textarea>
<input id="tosend" type="text" style="width: 437px;">
<input type="button" value="Enviar" onclick="send('Fernando', 'tosend', 'win');">
</div>
</form>

</body>
</html>