Codice sorgente |
||
<html> <head> <title>Il mio primo programma Javascript e VBScript</title> </head> <body> <SCRIPT language="javascript"> //########################################################################### //## Copyright (C) 2005 Ubaldo Pernigo //## Author Ubaldo Pernigo //## Support can be obtained from author at http://www.pernigo.com //## This program is free software. You can redistribute it and/or modify //## it under the terms of the GNU General Public License as published by //## the Free Software Foundation; either version 2 of the License. //########################################################################### //## date who what //## 20050225 ubi Prima versione per lezione gruppo potenziamento matematica //########################################################################### </script> <h1>Prova in Javascript</h1> <SCRIPT language="javascript"> var nome = prompt("inserisci qui il tuo nome",""); var msg = "Un benvenuto a "; document.write("Questo è il mio primo programma JavaScript! " + msg + "<b>" + nome + "</b>"); </script> <hr> <h1>Prova in VBScript</h1> <script type="text/vbscript"> nome = prompt("inserisci qui il tuo nome","") msg = "Un benvenuto a " document.write("Questo è il mio primo programma VBScript! " & msg & "<b>" & nome & "</b>") </script> </body> </html>
|