Select List Chooses Next Page

[Total: 0    Average: 0/5]

This has a select list that allows the user to choose where the next URL will be.

Body Code:

<script language="JavaScript" type="text/javascript">
<!-- 
function go(){
if (document.selecter.select1.options[document.selecter.select1.selectedIndex].value != "none") 
{
location = document.selecter.select1.options[document.selecter.select1.selectedIndex].value
		}
	}

document.write('<form name="selecter"><select name="select1">');
document.write('<option value=none>Select from menu');
document.write('<option value="http://www.js-examples.com/">JavaScript Examples');
document.write('<option value="http://www.jsexamples.com/">JavaScript Examples II');
document.write('<option value=none>--------------------');
document.write('</select>');
document.write('<input type="button" value="Go" onclick="go()">');
document.write('</form>');
// end hiding contents -->
</script>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *