The utility of this code is far greater than this single purpose, but this is the simplest way to explain it. You could use this, for example, in place of a site map, by including all major sections of your site on every single page. You could also generate this list of values dynamically. You may also pass parameter values in the values which will make the utility even greater.
Below is the JavaScript required to make the user jump from one page on your site to another using a simple drop down box. This code will work in Microsoft Internet Explorer and Netscape Navigator like browsers.
You may turn on or off line numbers to simplify cutting and pasting.
This example is the code above in action. Don't forget to use your browsers back button to get back to this page.