Ciao,
qualcosa del genere?
codice:<html> <head> <style type="text/css"> .testo {color:blue; font-size:48px; font-weight:bold; text-align:center;} </style> <script type="text/javascript"> function visualizza() { document.getElementById('div_1').innerHTML = document.getElementById('text_1').value; document.getElementById('div_1').className = "testo"; } </script> </head> <body> <div id="div_1"> <form> <input type="text" id="text_1" /> <input type="button" onclick="visualizza();" value="Visualizza il testo" /> </form> </div> </body> </html>

Rispondi quotando