Código:
<form name="setcombo"> <p><a href="javascript:visto(combo1)">Precios</a> | <a href="javascript:visto(combo2)">Productos</a> | <a href="javascript:visto(combo3)">Tamaño</a> <select name="stage2" size="1"> <option value="#">Seleccion 1</option> <option value="#">Seleccion 1</option> <option value="#">Seleccion 1</option> </select> <input type="button" name="test" value="Ver" onClick="IrA()"> </p> </form> <script> <!-- var combo1=new Array() combo1[0]=new Option("Precio 1","precio1.htm") combo1[1]=new Option("Precio 2","precio2.htm") combo1[2]=new Option("Precio 3","precio3.htm") combo1[3]=new Option("Precio 4","precio4.htm") combo1[4]=new Option("Precio 5","precio5.htm") var combo2=new Array() combo2[0]=new Option("Producto 1","producto1.htm") combo2[1]=new Option("Producto 2","producto2.htm") combo2[2]=new Option("Producto 3","producto3.htm") combo2[3]=new Option("Producto 4","producto4.htm") var combo3=new Array() combo3[0]=new Option("Tamaño A","tamanoA.htm") combo3[1]=new Option("Tamaño B","tamanoB.htm") combo3[2]=new Option("Tamaño C","tamanoC.htm") var guardaobj=document.setcombo.stage2 function visto(x){ for (m=guardaobj.options.length-1;m>0;m--) guardaobj.options[m]=null selectedarray=eval(x) for (i=0;i<selectedarray.length;i++) guardaobj.options[i]=new Option(selectedarray[i].text,selectedarray[i].value) guardaobj.options[0].selected=true } function IrA(){ location=guardaobj.options[guardaobj.selectedIndex].value } visto(combo1) //--> </script>