deadlock Message Board
[ September Full List | Reply ]

Re: Scroll Down Menu! Urgent Help!
From Melanie at Dream Greetings on 15 Sept '00
replying to Scroll Down Menu! Urgent Help! posted by Torsten Huygens

In this example I'm assuming that you have a separate HTML page for each state name like state.html (MS.html, AB.html, etc.)



function formHandler(){
var URL = document.form.state.options[document.form.state.selectedIndex].value + ".html";
window.location.href = URL;

<form action=any_file.html method="post" name="form">

<select name="state" onChange="formHandler()">
<option value="">ChooseState</option>
<option value="MS">MS</option>
<option value="AB">AB</option>
<option value="WM">WM</option>
<option value="TX">TX</option>
<option value="NY">NY</option>
<option value="NM">NM</option>
<option value="WT">WT</option>

<input type="submit" value="OK">



Reply to this message

Required Details
Your name:

Optional Details
Home page title:
Home page URL:
(if you'd like to receive automatic replies by email)

Your Message