Butto li` una risposta, che potrebbe essere corretta in base alla richiesta, ma dubito sia quello che vuoi:Potrebbe mancare qualche cosa in testa alla pagina creata.codice:HTML pagina principale: <input type="text" onchange="aprifull(this);"> JS pagina principale (nella head): function aprifull(obj) { var str = obj.value; var win = window.open("", "full", "left=0,top=0.widht="+screen.width+",height="+screen.height); win.document.write("<html\n<head><title>senza titolo</title></head>\n"); win.document.write("<body>\n<div>\n<p style='margin:auto;'>"); win.document.write(str); win.document.write("</p>\n</div>\n</body>"); }
Potrebbe non centrare la stringa nel browser IE.