A javascript function is a block of Javascript code that can be executed when "called" for. A function can be called when an event occurs like when the user clicks a buttons.
Scripts can be placed in the body or in the head selection of an HTML page, or in both. It can also be in an external javscript file.
There are different ways for javascript to "display". this is a review.
One of the many Javascript HTML methods is getElementById()
Javascript can change HTML Content
The document will get the date and the time
In this case Javascript Changes the value of the source attribute of an image
Content