prova con:
codice:
function writ() {
f = window.open();
bodyValue=document.Form1.text.value;
bodyValue=bodyValue.replace('\r\n','
');
f.document.write('<html><head><title>Test pagina</title></head><body>' +bodyValue+'</body></html>');
f.document.close();}