Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Location
    Denmark
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to use drop down box as hyperlink?

    Hello

    I am a newbie to javascript, so I hope someone can answer this question.

    I am using a series of drop down boxes, and when I click the last, I want to connect to a .htm file on my computer instead of a external webpage.

    Example:

    secondGroup[3][1][1]=new Option("CNN","http://www.cnn.com")

    What should I write to connect to a local page, I want to use the dropdown box's values as hyperlinks?

    secondGroup[3][1][1]=new Option("My page","???????????")

    I am hoping to get an answer.

    Gryofunk

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    file:///C:/PathTo/TheFile.ext

    For windows at least, in *nix you just go like:

    file:///home/username/Documents/bla.ext

    for example.

    And I have no clue on the MacOS file system structure.

  • #3
    New to the CF scene
    Join Date
    Jul 2002
    Location
    Denmark
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am sorry, but I cannot get it to work, could you please explain it a little more?



  •  

    Posting Permissions

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