Links in drop-down menu...open new browswer window

F

femfrog

Hi,

This is the code I used for my drop-down menu w/ links.

What I want to do is have the links open in a new browser window.

I don't know what code to add in order to do this.

I'm using FP 2003.

You help is much appreciated.
 
F

femfrog

I knew I forgot something:

<SELECT name="URL"
onChange="if(options[selectedIndex].value)
window.location.href=
(options[selectedIndex].value)">

<OPTION value="">Click for more information</OPTION>
<OPTION value="path_of_file.pdf">Example 1</OPTION>
<OPTION value="path_of_file.pdf">Example 2</OPTION>

</SELECT>
 
J

Jon Spivey

Hi,
You can just change
window.location.href=(options[selectedIndex].value)
to
window.open(options[selectedIndex].value)

Cheers,
Jon
 
Top