...

View Full Version : How to use drop down box as hyperlink?



gryofunk
07-06-2002, 07:32 PM
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.

:p Gryofunk

jkd
07-06-2002, 09:30 PM
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.

gryofunk
07-06-2002, 09:39 PM
I am sorry, but I cannot get it to work, could you please explain it a little more?

:)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum