Computer Hope

Internet & Networking => Web design => Topic started by: ezchf on August 30, 2016, 02:24:09 PM

Title: target="_blank" fails to open new page in drop down menu
Post by: ezchf on August 30, 2016, 02:24:09 PM
This is my first post in this forum. I hope I did things correct. Got confused with the CHAPka advertising distraction inside the sign-up page.

I have been searching for years, nobody could advise me: Why do my menus not open a new page? This applies to all drop down menus in
http://ezaca.tripod.com/burst/index.html (http://ezaca.tripod.com/burst/index.html)

Here is code extract:
Code: [Select]
<CENTER>Im Menu_5 zuletzt  gew&auml;hlt</CENTER>
<center><FORM name="Menu_5"><!-- Buerstenmenu -->
<SELECT name="URL" onChange="if(options[selectedIndex].value)
window.location.href=(options[selectedIndex].value) " style="background-color: #CCFF99; font-weight: bold;">

<option value="" selected="selected" style="background-color: #FFCC99; font-weight: bold;">---W&auml;hlen ---</option>

<!-- enter source page address for the RESET function -->

<OPTION
value="http://ezaca.tripod.com/burst/index.html/#burstn" target="_self" > Menu zur&uuml;ck setzen </OPTION><!-- this works -->

<!-- enter options with web address below, as many as needed -->

<optgroup style="background-color: HotPink; font-weight: bold;" label="Presse 2014 & 2015">
<OPTION
value="http://www.badische-zeitung.de/todtnau/buerstenmacher-seit-60-jahren--104081121.html" target="_blank">&nbsp;BADISCHE: 60 Jahre B&uuml;rstenmacher</OPTION>
<OPTION
value="http://www.badische-zeitung.de/todtnau/die-buerstenmacher-von-todtnau--59098591.html" target="_blank">&nbsp;BADISCHE: Wie Busse das macht</OPTION>

<!.... left out some OPTION items in this example, you can collect more from the page actual if desired -->

</SELECT>
</FORM></center>

Please try the web page. Thanks. I still hope for a solution in HTML4 one day.
I have tried to include _blank into the head area, it won't work there, which is fine. I rather control each menu item - that is I would like to, but the _blank is not executed.
The line with 'this works' at the end refers to the need to reset the menu to see the list with its title. The menu gets stuck on the selected item. That is why I offer a RESET possibility for the reader. For explanation only. No need to change.