SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Aug 2002
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    drop down menu for frameset page

    Hi could any one help me with this menu?

    I used an online menu generator and thought I could use it in a frames page by using a normal HTML tag (target) but this didn't work and i don't know javascript to make any adjustments.

    Here's the script I am trying to use

    <form name="jump">
    <select name="menu">
    <option value="http://www.google.com" target= main">test</option>
    </select>
    <input type="button" onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">

    hope you can help!

    Thanks

  2. #2
    SitePoint Guru
    Join Date
    Sep 2001
    Location
    Vancouver
    Posts
    809
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use this:

    Code:
    <form name="jump" target="new">

  3. #3
    SitePoint Addict
    Join Date
    May 2000
    Posts
    313
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If main is the name of the frame you are trying to load the selection in then try this:
    <input type="button" onClick="parent.main.location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">

  4. #4
    SitePoint Member
    Join Date
    Aug 2002
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your help guys.

    Darin I tried what you suggested but this didn't work for me, I did however get sucess with the solution you provided requestcode! It worked a treat...

    Nice One

    DM


Bookmarks

Posting Permissions

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