Drop Down connect to hyperlink

I have a web page that I want to put a drop down on.  The drop down will be a list of items that when selected would go to a hyperlink (Different for each entry in the list).  When I did this and click on one of the drop downs it does nothing?

Is there a trick I am missing, I thought it was automagic.

Thanks a bunch!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You'll need to use the javascript onchange eventhandler....

it would look something like this:

<script language="javascript">
function ChangeMyLoc(NewLocation)
 window.location.href = NewLocation;



<select onchange="ChangeMyLoc(this.options[this.selectedIndex].value)">
<option selected>kiezuh!!
<option value="test1.html">testuh!!


If you put the url's which need to be loaded in the value part of each option, the page will automatically be loaded when the user has made his/her choice...
If there's anything unclear or you need to have this work in a frameset let me know and i'll fix it...

pinkstonmAuthor Commented:
It did not work!

Here is my HTML

<script language="javascript">
function ChangeMyLoc(NewLocation)
 window.location.href - NewLocation;

<title>MMC Status Page</title>
<meta name="Microsoft Border" content="tl, default">

<body background="../images/y2kbk.gif" topmargin="0">

<p align="center"><img src="../images/lblmmc_box2.gif"
alt="Technical Infrastructure Status" width="213" height="62"> &nbsp;&nbsp;&nbsp;&nbsp; <img
alt="Regional &amp; Group Status, Select from dropdown below" width="213" height="62">&nbsp;&nbsp;&nbsp;&nbsp;
<img src="../images/lblmmc_box3.gif" alt="Comments &amp; Hot news from  MMC manager"
width="213" height="62"> <select name="D1" size="1"
style="font-family: Tempus Sans ITC; color: rgb(0,0,128); background-image: url('../images/y2kbk.gif')">
  <option selected value="Select a Region or Group">Select a Region or Group</option>
  <option value="U.S. Eastern Region (TI-ER)">U.S. Eastern Region (TI-ER)</option>
  <option value="U.S. Northern Region (TI-NR)">U.S. Northern Region (TI-NR)</option>
  <option value="U.S. Southern Region (TI-SR)">U.S. Southern Region (TI-SR)</option>
  <option value="U.S. Western Region (TI-WR)">U.S. Western Region (TI-WR)</option>
  <option value="Asia Pacific (TI-AP)">Asia Pacific (TI-AP)</option>
  <option value="Canada (TI-CA)">Canada (TI-CA)</option>
  <option value="Data Security (TI-SE)">Data Security (TI-SE)</option>
  <option value="DSSS (TI-DS)">DSSS (TI-DS)</option>
  <option value="Global Request Mgt (TI-GR)">Global Request Mgt (TI-GR)</option>
  <option value="Europe &amp; Africa (TI-EM)">Europe &amp; Africa (TI-EM)</option>
  <option value="Latin America (TI-LA)">Latin America (TI-LA)</option>
  <option value="Mainframe Platforms (TI-MP)">Mainframe Platforms (TI-MP)</option>
  <option value="Network (TI-NW)">Network (TI-NW)</option>
  <option value="Technical Field Servc. (TI-FS)">Technical Field Servc. (TI-FS)</option>
  <option value="Technology &amp; Eng. (TI-TE)">Technology &amp; Eng. (TI-TE)</option>
  <option value="Templates &amp; Tools (TI-TO)">Templates &amp; Tools (TI-TO)</option>
  <option value="Tech ImpI Pln &amp; Mgt (TI-PM)">Tech ImpI Pln &amp; Mgt (TI-PM)</option>

  <p><select onchange="ChangeMyLoc(this.options[this.selectedIndex].value)" size="1">
    <option value="http://test1">Western Region </option>
  </select> </p>

<p><img src="../images/lblmmc_other.gif" width="230" height="64"><br>
&nbsp;&nbsp;&nbsp;&nbsp; <img src="../images/lblmmc_commflow.gif"
alt="MMC Communications Flow" width="201" height="49"><br>
&nbsp;&nbsp;&nbsp;&nbsp; <img src="../images/lblmmc_details.gif" alt="MMC Details"
width="201" height="49"><br>
&nbsp;&nbsp;&nbsp;&nbsp; <img src="../images/lblmmc_simulation.gif"
alt="Old Simmulation Results" width="201" height="49"></p>

<form method="POST" action="--WEBBOT-SELF--">
  <!--webbot bot="SaveResults" startspan U-File="../_private/form_results.txt"
  S-Format="TEXT/CSV" S-Label-Fields="TRUE" --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" endspan --><p>&nbsp;</p>

<p><font face="Tempus Sans ITC" size="2">Last Update: <!--webbot bot="Timestamp"
S-Type="EDITED" S-Format="%A, %B %d, %Y" --> <br>
© 1999 Electronic Data Systems </font>
make sure the url in the option value is correct... in the code above it's set to http://test1
make sure this is the url which needs to be loaded when that particular item is selected.... In your case it would be the url which contains the information for the Western Region...
In my testcase, i used a page called test1.html...

The script part you posted looks as follows:

function ChangeMyLoc(NewLocation)
 window.location.href - NewLocation;

Change the - sign to =
Place the script part between <head> and </head>....
This would make it look like:
<script.... >

Hope to have solved your problems this time.... If not, I guess I have to keep trying, won't I... :)


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
I'm going home now, so it'll take a few hours for me to check back again...

This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed.  Also a question is posted there specific to these changes that apply to the experts here.  Also, I am including the link to our All Topics, since many new ones have recently been added.

Thank you,
Moderator @ Experts Exchange
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.