Jump to content
xisto Community
Static_Fury

Dropdown Menus Links IDK how to make them link

Recommended Posts

Ok its a big problem to me, i need to make my drop down menus options link to a web page. I know i can do it with a button, and i can get that to work but i need/want to have it link as soon as the option is selected........How do i do that?

Share this post


Link to post
Share on other sites

Well this uses javascript and the code looks quite compucated. Here it is:

 

<form name="jumpto"> <select name="here" onChange="window.location=document.jumpto.here.options[document.jumpto.here.selectedIndex].value">   <option value="/index.php">Home   <option value="/forums/"> Forums   <option value="/chat/"> Chat   <option value="/about.php"> About </select></form>

Pretty easy to work out. When you click on home it redirects you to the file /index.php and when you click on chat it redirects you to the directory /chat.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.