Click to See Complete Forum and Search --> : Getting drop down menu to open new window


MissMasquerade
05-27-2003, 08:12 AM
I can usually figure these things out on my own but this one eludes me. So, could someone help me kick myself? How can I make the options in a drop down menu as created here: http://javascript.internet.com/generators/drop-down-menu.html open the link in a _blank window?

Thanks

pyro
05-27-2003, 08:16 AM
Change this:

<select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">

to something like this:

<select name="menu" onChange="window.open(document.jump.menu.options[document.jump.menu.selectedIndex].value);" value="GO">

khalidali63
05-27-2003, 08:16 AM
The script on this page may be of a help

http://68.145.35.86/skills/javascripts/DoubleFormListBoxOpenLink.html

pyro
05-27-2003, 10:26 PM
Yes, I just took the original code and added a window.open(), though...