Explanation of Code
jumpto. This function uses
document.location.href to load the URL provided by the jump menu (which is stored in the
x parameter). This accepts a parameter called
x, which is the value we pass in when we call the function in our HTML. In the following code I've changed the form name to
form2 to avoid any conflict with the above example (which uses
form1). You can call your form anything you like.
The HTML part is what displays the actual dropdown menu, which in this case is an HTML
<select> element. You can change the values here to your own URLs. Of course, you're more than welcome to leave them as they are!