This example loads an external Javascript file within the <head> element. That external Javascript file defines a function. That function is "called" from a line of Javascript code at the bottom of the body section of the XHTML.
Click here to view the contents of the javascript file