Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

drop down menu

Status
Not open for further replies.

natashaXXX

Programmer
Sep 13, 2002
13
GB
I want to move to a different html page when the user selects optionb. How can I do this using javascript and a drop down menu? I know this is probably very basic but I haven't done this in years and even then only touched on it. But i can't seem to recall how to.

Many thanks
 
You can alter this code to do what you need it to. It won't work as it is, but it should give you the general idea...


<script>
function subIt(){
document.myForm.action = &quot;somePage.asp&quot;
document.myForm.submit()
}
</script>

<form name=&quot;myForm&quot;>
<select name=&quot;mySelect&quot; onChange=&quot;subIt()&quot;>
<option>My Options
</select>
</form>
-- Just trying to help...
[wolf]<--- This is a wolf? We need a new icon.......
mikewolf@tst-us.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top