JavaScript Drop-Down Link Box

 

This script will redirect a user to a site he or she has selected in the drop-down menu.

.

 

Example

 

Script Source

 

<The JavaScript >

<script type="text/javascript">
function pulldown_menu()
{
var url = document.drop_box.link_box.options[document.drop_box.link_box.selectedIndex].value

window.location.href = url
}
</script>

 

<The drop_down box >

<form name="drop_box">
<select name="link_box" SIZE="1">
<option value="">Select A Site</option>
<option value="https://www.wizzardweb.co.uk">Wizzardweb.co.uk</option>
<option value="https://www.cherriblue.co.uk">Cherriblue.co.uk</option>
<option value="https://www.google.co.uk">Google.co.uk</option>
<option value="https://www.yahoo.co.uk">Yahoo.co.uk</option>
<option value="https://www.orange.co.uk">Orange.co.uk</option>
</select>
<input type="button" value="Go!" onClick="JavaScript:pulldown_menu()">
</form>

 

Please let me know if this script was helpful to you.