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.

 


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.