codice:<!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Documento HTML</title> <script type="text/javascript"> var finestrella; function riempi () { finestrella = open("", "Dati-inviati", "width=800,height=600"); finestrella.document.open(); finestrella.document.write("<!doctype html>\n<html>\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text\/html; charset=UTF-8\" \/>\n<title>Documento HTML<\/title>\n<\/head>\n \n<body>"); finestrella.document.write("<h1>Ecco i dati inviati dall'utente</h1>"); finestrella.document.write(" NOME: "+nome+"<br \/>"); finestrella.document.write("VIA: "+via+"<br \/>"); finestrella.document.write("NUMERO: "+numero+"<br \/>"); finestrella.document.write("CAP: "+cap+"<br \/>"); finestrella.document.write("EMAIL: "+email+"<br \/>"); finestrella.document.write("PASSWORD: "+password+"<\/p>"); finestrella.document.write("<\/body><\/html>"); finestrella.document.close(); } function cancella () { finestrella.document.body.innerHTML = ""; } </script> </head> <body> [ <span style="color: #0000ff; text-decoration: underline; cursor: pointer;" onclick="riempi();">Apri</span> | <span style="color: #0000ff; text-decoration: underline; cursor: pointer;" onclick="cancella();">Svuota</span> ] </body> </html>![]()