new Date()
can be used to obtain the date and time of day
e.g.
Try Reload.
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]