Hola nuevo. He realizado este codigo segun tu consulta ,pero no logro hacerlo funcionar correctamente: <html> <head>
<style>
body{margin:0px;overflow:;} #area{ position:absolute;overflow:auto; left:0;top:0;width:50%;height:100%;padding:10px; border:0px solid;color:black;background:#ddd; font:10px verdana; } </style>
<script> function mira(){ document.frames[0].document.body.innerHTML=""
document.frames[0].document.write(document.getElementById('area').value)
} </script> </head>
<body onload=mira()>
<textarea id="area" onkeypress="mira()">
<html>
<head>
<style>
h1{font:50px tahoma} input{font:30px;border:5 solid magenta;color:aqua;} </style>
<script> function color(){ document.body.style.background='red'
} function musica(){ var x=document.createElement('embed')
x.src='file:///c:/mi/musica/mp3/trompa.mp3' x.autostart=true
x.hidden=true
document.body.appendChild(x)
} </script> </head>
<body>
hola
<br>
<h1>hola</h1>
<input type="button" value="color" onclick="color()">
<input type="button" value="musica" onclick="musica()">
</body>
</html>
</textarea>
<iframe name="ventana" width="50%" height="100%" align="right" marginwidth="5" marginheight="5" scrolling="auto"></iframe>
</body>
</html>
<!-- programeitor 2005, [email protected], Fernando Rojas Coco, Sevilla. -->
Por una parte en IE solo le puedo añadir texto plano ,en cuanto le pongo una etiqueta html ,se pone en blanco.
En NS solo me muestra el boton color ,y no reconoce ninguna entrada desde el texarea ,marcando un error de que no reconoce 'document.frames'.
Si quito document.frames[] y pongo document.ventana ocurre lo mismo.
Bueno, espero respuestas alentadoreas.