swen: Dropdown Menü

Beitrag lesen

<form name="doublecombo">
    <p>
      <select name="example" size="1" onChange="redirect(this.options.selectedIndex)">
        <option>Nokia</option>
        <option>Ericsson</option>
        <option>Motorola</option>
      </select>
      <select name="stage2" size="1">
        <option target="bottomFrame" value="Nokia_5510.html">Nokia 5510</option>
        <option value="Nokia_3310.html">Nokia 3310</option>
        <option value="Nokia_3330.html">Nokia 3330</option>
      </select>
      <input type="button" name="test" value="Go!" onClick="go()">
    </p>
    <script>

var groups=document.doublecombo.example.options.length
var group=new Array(groups)
for (i=0; i<groups; i++)
group[i]=new Array()

group[0][0]=new Option("Nokia","Nokia_5510.htm")
group[0][1]=new Option("Ericson","Ericson.htm")
group[0][2]=new Option("Motorola","Motorola.html")

group[1][0]=new Option("Ericson T68","Ericson_T68.html")
group[1][1]=new Option("Ericson R320","Ericson_R320.html")

group[2][0]=new Option("Motorola V66","Motorola_V66.html")
group[2][1]=new Option("Motorola V70" , "Motorola_V70.html")

var temp=document.doublecombo.stage2

function redirect(x){
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null
for (i=0;i<group[x].length;i++){
temp.options[i]=new Option(group[x][i].text,group[x][i].value)
}
temp.options[0].selected=true
}

function go(){
location=temp.options[temp.selectedIndex].value
}

//-->
</script>
  </form>
  </font>

<form>
  </form>

das ist der Quelltext ich habe keine Ahnung wo ich hier target="mainFrame" einsetzen kann ?