system — 2001-01-14T16:11:56-05:00 — #1
How do I get a drop-down menu to open the links in it in a new window?
I have tried adding TARGET="_BLANK at various places on the form, but to no avail, the links still open in the current window.
I know it's possible if I have a 'GO'-type button that is clicked after an option is selected, but I prefer a drop-down menu that works automatically without having to press the 'GO' button.
<SELECT NAME="SelectURL" onChange=
document.nav.SelectURL.options[document.nav.SelectURL.selectedIndex].value" TARGET="_BLANK" >
SELECTED>Please select an option:
CD UK - Music Shopping
TopSites UK - Britain's Best Websites
Can anybody help me please?
bc1 — 2001-01-14T19:27:11-05:00 — #2
Have you tried it in the actual <FORM> tag?
arielladog — 2001-01-15T16:44:18-05:00 — #3
Instead of using this:
<SELECT NAME="SelectURL" onChange="document.location.href=document.nav.SelectURL.options[document.nav.SelectURL.selectedIndex].value" TARGET="_BLANK" >
<select name="SelectURL" onchange="window.open(document.nav.SelectURL.options[document.nav.SelectURL.selectedIndex].value)">
system — 2001-01-15T18:07:23-05:00 — #4
You can now see the script working at http://www.UKHotMovies.com/welcome.shtml - thanks to you!
arielladog — 2001-01-15T18:31:39-05:00 — #5
You are welcome.
Just curious, but why is the Karma on that post negative?
twtcommish — 2001-01-15T19:39:05-05:00 — #6