Javascripts > Javascript Menus > GO Menu
Script Title: GO Menu
Description: Use the GO! menu to quickly browser through and navigate to different URLs!
Example: Available
Copy the following code between the <BODY></BODY> tags of your html page.<script language="JavaScript"> /* Visit http://java-scripts.net or http://wsabstract.com For this script and more */ function go_to_station(){ if (document.stationform.stationselect.options[0].selected){ window.location.href = "http://www.java-scripts.net";} else if (document.stationform.stationselect.options[1].selected) { window.location.href = "http://freewarejava.com";} else if (document.stationform.stationselect.options[2].selected) { window.location.href = "http://dynamicdrive.com";} else if (document.stationform.stationselect.options[3].selected) { window.location.href = "http://reallybig.com";} return true; } function textValue(){ var stationInteger, stationString stationInteger = document.stationform.stationselect.selectedIndex stationString = document.stationform.stationselect.options[stationInteger].text document.stationform.stationtext.value = "Go to " + stationString +"!" } </script> <center> <p> <form name="stationform"> <select name="stationselect" onChange="textValue()" multiple size="5"> <option>JavaScript <option>Java <option>DHTML Stuff <option>Web Building </select> <br><p> <input type="button" name="stationbutton" value="Go!" onClick="go_to_station()"> <p> <input type="text" name="stationtext" value="" size="35" maxlength="35"> <p> </form> </center>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email