[JavaScript]

Date and Time

new Date() can be used to obtain the date and time of day
e.g.

Try Reload.


Clock

By setting a time-out a JavaScript procedure can be regularly reactivated to write the current time. The procedure gets the date and time, sets the value of a text field in a form and sleeps for one second before being rerun:

e.g.

The source of this page is [here]


L.Allison Department of Computer Science, Monash University, Australia 3168 / 1997