Hallo
Hab hier ein kleines Problem. Ich habe hier ein Formular mit zwei voneinander abhängigen Menus. Wenn ich da jetzt ne Auswahl treffe, öffnet der mir das immer im aktiven Fenster. Kann mir jemand sagen wie ich da vorgehen muss dass da ein neues Fenster kommt?
Vielen Dank!
<form name="songauswahl" target="_blank">
<p align="left"><font color="#333333" size="2" face="Arial, Helvetica, sans-serif"><strong>Sound:
</strong></font>
<select name="album" style="background-color : silver" size="1" onChange="redirect(this.options.selectedIndex)">
<option>Album</option>
<option>Rising</option>
<option>Powerride</option>
<option>The live side</option>
<option>Moving Force</option>
</select>
<select name="songs" style="background-color : silver" size="1">
<option>Song</option>
</select>
<script language="">
<!--
var groups=document.songauswahl.album.options.length
var auswahl=new Array(groups)
for (i=0; i<groups; i++)
auswahl[i]=new Array()
auswahl[0][0]=new Option("Song")
auswahl[1][0]=new Option("Rising high", src="Rising.php")
auswahl[1][1]=new Option("Done me wrong","http://www.excite.de")
auswahl[1][2]=new Option("I will be there","http://www.fireball.de")
auswahl[1][3]=new Option("Now or never","http://www.eule.de")
auswahl[2][0]=new Option("Why don't you call me", src="Sounds/shakra02.mp3")
auswahl[2][1]=new Option("Watching you","http://www.arbeitsamt.de")
auswahl[2][2]=new Option("Out in the rain","http://www.avm.de")
auswahl[2][3]=new Option("Get it all out","http://www.premiereworld.de")
auswahl[2][4]=new Option("Tell me","http://www.premiereworld.de")
auswahl[3][0]=new Option("Don't try to call","http://www.t-online.de")
auswahl[3][1]=new Option("And life begins","http://www.arbeitsamt.de")
auswahl[3][2]=new Option("Stranger","http://www.avm.de")
auswahl[3][3]=new Option("Faces","http://www.premiereworld.de")
auswahl[4][0]=new Option("Don't try to call","http://www.t-online.de")
auswahl[4][1]=new Option("Stranger","http://www.arbeitsamt.de")
auswahl[4][2]=new Option("And life begins","http://www.avm.de")
auswahl[4][3]=new Option("Faces","http://www.premiereworld.de")
auswahl[4][4]=new Option("When the phone rings twice","http://www.premiereworld.de")
var temp=document.songauswahl.songs
function redirect(x){
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null
for (i=0;i<auswahl[x].length;i++){
temp.options[i]=new Option(auswahl[x][i].text,auswahl[x][i].value)
}
temp.options[0].selected=true
}
function auswaehlen(){
location=temp.options[temp.selectedIndex].value
}
//-->
</script>
<button name="test" onClick="auswaehlen()" style="width:74px; height:25px; background-color:#666666; border=0px"><img src="Bilder/play.gif"></button>
</p>
</form>