Web Component Question

Discussion in 'OT Technology' started by UsualSuspect, Jan 26, 2004.

  1. UsualSuspect

    UsualSuspect Sic Semper Tyrannis

    Joined:
    Oct 17, 2000
    Messages:
    3,522
    Likes Received:
    0
    Location:
    United States of America
    I am trying to make a drop down box that will have 4 options. I want to make it so when an opition is selected it takes them to a certain page...i.e. the option is a hyperlink. I am using Frontpage XP. Thank you for any help.
     
  2. shastaisforwinners

    shastaisforwinners OT Supporter

    Joined:
    Aug 31, 2003
    Messages:
    2,820
    Likes Received:
    4
    Location:
    Paramore
    <FORM name="formnamehere">
    <SELECT name="dropboxnamehere" onChange="window.location=document.formnamehere.dropboxnamehere.options[document.formnamehere.dropboxnamehere.selectedIndex].value"> <OPTION SELECTED value="">--Choose--
    <OPTION value="http://www.firstwebpage.com">first web page
    <OPTION value="http://www.secondwebpage.com">second web page
    </SELECT>
    </FORM>

    should be pretty self-explanatory
     

Share This Page