Problemkind aka Greenhorn: Auf Formular zugreifen und string splitten

Beitrag lesen

<html>
<head>
<title>Test</title>
<script type="text/javascript">
<!--
 Var link = list.form.Auswahl.options[list.form.Auswahl.options.selectedIndex].value.split(",");

function Go(x,y){
 if(x == "nothing") {
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
   return;
 }
 else if(x == "end")
   top.location.href = window.location;
 else {
   parent.frames[4].location.href = x;
   parent.frames[6].location.href = y;
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
 }
}
//-->
</script>
</head>
<body bgcolor="silver">
<form action="" name="list"><select size=1 name="Auswahl"
  onChange="Go(link[0],link[1])"
  style="width:120px; background-color:#FFFFE0; font-size:9pt; font-family:Arial,sans-serif;"
  width="120">
<option value="nothing">[ bitte auswählen! ]</option>
<option value="url.html">---</option>
<option value="menu/alunch.html,menu/alunch_rechts.html">Asiatisches Lunch</option>
<option value="menu/emenu.html,menu/emenu_rechts.html">Einfaches Menu</option>
<option value="url.html">---</option>
<option value="url.html">---</option>
<option value="url.html">---</option>
<option value="url.html">---</option>
<option value="nothing">------------------</option>
</select></form>
</body>
</html>