Assignment 12: A Possible Answer


<SCRIPT LANGUAGE="javascript">

//This script writes to the status bar
//A neat trick indeed

hourMin = new Date(); var h = hourMin.getHours()
var m = hourMin.getMinutes()
var firstname = prompt("Write your first name in the box below","Write it here")
alert("Welcome " +firstname+ ". It is " +m+ " minutes past " +h+ ". Thanks for coming.")


Gives you the alert box:

     Reload to see it again.


Did You Get It?


Back to the Index Page