Ver originalfunction texto(txt){ document.getElementById('div').inerHTML = txt.value;}
Ver original<input type='text' onkeyup='texto(this);' /><div id='div'>Aquí el texto del input</div>