Hallo Leute!
Ich habe eine Website, auf der man mittels Radio-Buttons eine Auswahl treffen kann, anhand der Auswahl wird eine bestimmte Seite geöffnet. Hier der Code:
<script type="text/javascript" language="JavaScript">
<!--
function fRadioChk()
{
var i1=0;
var iAnz=0;
for (var i=0;i<=document.Form1.radBtn.length-1; i++)
{
i1=i+1;
if(document.Form1.radBtn[i].checked==true)
{
var temp1 = (document.Form1.radBtn[i].value);
var temp2 = ".html";
window.location.href(temp1+temp2);
iAnz++;
}
}
}
//-->
</script>
<form name="Form1" action="naa.html" method="post">
<table border="0" width="100%" id="table1">
<tr>
<td align="right"><b>
<input type="Radio" name="radBtn" value="NAA30091"></td>
<td width="70%"><font face="Arial" size="2">Beschreibung</font></td>
</tr>
</table>
hier kommen Button 2, Button 3, etc...dann:
<input type="button" name="btn1" value="Auswählen" onClick="fRadioChk()">
Im Internet Explorer (6 und 7) funktioniert's einwandfrei, im Firefox aber reagiert der "Auswählen"-Button btn1 überhaupt nicht. :-( Woran könnte es liegen? Danke schon mal.
Gruß
Felix