Time of day greeting
The greeting below depends on what time it is.
This is pretty much the same as the previous example, but a text box (in
a form) is used.
The form is called greet, the text box is named greetingbox.
To put in the message, the JavaScript looks like this: document.greet.greetingbox.value=message
This means that the browser will look in the current document, for
something (a form in this case) called greet.
It will then try to locate something called greetingbox inside greet.
Finally, the value (contents) of the box is set to the message.