Example of Passing an Argument to a Function in Javascript

This example loads an external Javascript file within the <head> element. That external Javascript file defines a function that has one parameter. That function is called and passed an argument at the bottom of the body section of the XHTML.

Click here to view the contents of the javascript file