hello How To Link a Drop Down box without JavaScript? I use this code, but it doesn't work: <select size="1" id="MAB"> <option><a href="http://www.test.com/archives/2008/07/">July 2008</a></option> <option><a href="http://www.test.com/archives/2008/06/">June 2008</a></option> </select> Code (markup):
That code is incorrect, <form method="post" action="pagetobeloaded.php"> <select id="mab" name="dropdown"> <option value="July2008">July 2008</option> <option value="June2008">June 2008</option> </select> </form> Code (markup): is correct, though you will need a Server Side Scripting Language to catch the values on the loaded page and you wont be able to load different pages for different values. Here is a JavaScript tutorial on drop down menus. http://www.webdesign.org/web/html-and-css/tutorials/css-menu-using-javascript.9094.html
This page's tool will automatically generate all the javascript you need. Just enter your URL and text for the drop-down menu and it will generate all the code for you: http://javascript.internet.com/generators/drop-down-menu.html