dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: Drop Down Menu.

  1. #1
    Join Date
    Jul 2004
    Location
    Garden City n Merlion
    Posts
    73

    Drop Down Menu.

    Hi,

    i found this code on the web for drop down menu. The problem is I dont know how to edit it for the menu to display the html pages on other frame (example, 1 frameset containing top and bottom frame. drop down menu on the top frame and the relevant html pages on bottom frame called MainFrame)

    Can someone help?

    <form name="jump">
    <select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
    <option value="a1.htm">A1</option>
    <option value="b1.htm">B1</option>
    <option value="c1.htm">C1</option>
    <option value="d1.htm">D1</option>
    <option value="e1.htm">E1</option>
    <option value="f1.htm">F1</option>
    </select>
    </form>


    i do not wish to use javascript as some ppl may turn them off.

  2. #2
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    i do not wish to use javascript as some ppl may turn them off.
    So what do you think the following is?

    onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;"

  3. #3
    Join Date
    Mar 2005
    Location
    Sydney, Australia
    Posts
    7,974
    To get it to work without the Javascript you will need to substitute a server side script to do the transfer and a button to trigger it.

    I have a series of tutorials on all of the options relating to dropdown menus at http://javascript.about.com/od/dropdownnavigation/

  4. #4
    Join Date
    Jul 2004
    Location
    Garden City n Merlion
    Posts
    73
    ok then. guess i have to use javascript

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles