Web Analytics Made Easy -
StatCounter How to use drop down box as hyperlink? - CodingForum

Announcement

Collapse
No announcement yet.

How to use drop down box as hyperlink?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    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.
    jasonkarldavis.com

    Comment


    • #3
      I am sorry, but I cannot get it to work, could you please explain it a little more?

      Comment

      Working...
      X