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?
Have you tried it in the actual <FORM> tag?
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)">
Thank you :)
You can now see the script working at http://www.UKHotMovies.com/welcome.shtml - thanks to you!
You are welcome.
Just curious, but why is the Karma on that post negative?