Hallo!
Habe folgendes Problem:
Wie bekommt man eine HTML-Datei mit einer Auswahlliste dazu,
die Links im eigenen Fenster zu öffnen?
Der Quelltext unten funktioniert problemlos, wenn die Auswahlliste
in einem anderen Frame als die zu ladende Datei ist.
Ich möchte aber erreichen, daß die Datei mit der Auswahlliste ersetzt wird.
Wer kann helfen?
<HTML>
<HEAD>
<TITLE></TITLE>
<script language="JavaScript">
<!--
function CheckAuswahl()
{
for(i=0;i<document.KathegorieSubmit.Auswahl.length;++i)
if(document.KathegorieSubmit.Auswahl.options[i].selected == true)
if(document.KathegorieSubmit.Auswahl.options[i].value == 1)
{
parent.frames[...].location.href = "1.htm";
}
else
{
if(document.KathegorieSubmit.Auswahl.options[i].value == 2)
{
parent.frames[...].location.href = "2.htm";
}
else
{
if(document.KathegorieSubmit.Auswahl.options[i].value == 3)
{
parent.frames[...].location.href = "3.htm";
}
else
{
if(document.KathegorieSubmit.Auswahl.options[i].value == 4)
{
parent.frames[...].location.href = "4.htm";
}
}
}
}
-->
</script>
</HEAD>
<BODY>
<form NAME="KathegorieSubmit" onSubmit="CheckAuswahl()">
<SELECT SIZE="1" NAME="Auswahl">
<OPTION value="1" SELECTED>Auswahl 1</OPTION>
<OPTION value="2">Auswahl 2</OPTION>
<OPTION value="3">Auswahl 3</OPTION>
<OPTION value="4">Auswahl 4</OPTION>
</SELECT>
<input LANGUAGE="JavaScript1.1" type=image src="button.gif" width="45" height="28" border="0" onClick="CheckAuswahl()"></form>
</BODY>
</HTML>