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

G

Guest

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.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Rollover drop down menus 1
Drop Down Menu 2
Drop Down Menu 4
Drop-Down List of Links 2
drop down menu 3
Drop-down menu with links 3
Link bar links open in new window - how do I stop that? 3
drop down menu 2

Top