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="">JavaScript Examples');
document.write('<option value="">JavaScript Examples II');
document.write('<option value=none>--------------------');
document.write('<input type="button" value="Go" onclick="go()">');
// end hiding contents -->

Times Viewed: 0

Leave a Reply

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