Menü Link in neuem Fenster

Status
Nicht offen für weitere Antworten.

Dorni

Grünschnabel
Kann mir mal jemand dringend helfen? Ich will das die Links im Menü sich in einem neuen Fenster öffnen! Hat einer ne ahnung wie ich das machen kann?

<form name="links"><div align="center"><select onChange="location.href = document.links.link.options[document.links.link.selectedIndex].value;" name="link" style="background-color:#E37F27; font-size: 10px; width=105px; color: #CACACA; font-family: verdana,geneva,arial">
<option>Links:</option>
<option value="http://ABC.org">ABC</option>
<option value="http://ZXY.de">ZXY</option>
<option value=""></option>
</select>
 
PHP:
<form name="links"><div align="center"><select onChange="window.open(document.links.link.options[document.links.link.selectedIndex].value);" name="link" style="background-color:#E37F27; font-size: 10px; width=105px; color: #CACACA; font-family: verdana,geneva,arial">
<option>Links:</option>
<option value="http://ABC.org">ABC</option>
<option value="http://ZXY.de">ZXY</option>
<option value=""></option>
</select>
Wie immer ungetestet
 
Ersetze
Code:
location.href = document.links.link.options[document.links.link.selectedIndex].value
Durch z.B. das hier:
Code:
window.open(this.options[this.selectedIndex].value, '_blank');
 
Status
Nicht offen für weitere Antworten.

Neue Beiträge

Zurück