<script language="JavaScript">
var name = prompt("Hi! What is your name?","")
alert("Hello, "+name+", welcome to my page. You  are using "+navigator.appName+" version:"+navigator.appVersion+" and you came from " +document.referrer+". Have fun!")
</script>
</head>
<center><h1>Prompting for your Name 2</h1></center>
<p>This script is similar to the previous one, except the name, etc, is written into a message box rather than the page</p>
<p>Personally, I don't see much point in telling people what browser they are using, or what URL they came from, as they surely know that already. Anyway, it shows what can be done!</p>
