Function with one argument
This example illustrates the use of a programmer-defined function. The jumpto function has one argument, an is defined in the head section of the page. The comment is designed to hide the function definition from early Web clients that did not recognize javascript.
The onClick event handler assigns the selected URL to the variable loc which it passes to the jumpto function.