<select name="here" onchange="location.href=this.options[this.selectedIndex].value;">
  <option value="http://www.163.com">163</option>
  <option value="http://www.sina.com">sina</option>
  <option value="http://www.tom.com">tom</option>
</select>

解决方案 »

  1.   

    onchange事件,判断选择的value,跳转到相应的页...
      

  2.   

    function goto(){
       var sel=document.getElementById("here");
       if(sel!=null&&typeof(sel)=="select"){
          for(var i=0;i<sel.length;i++){        if(sel.options[i].selected&&sel.o){
               
            }
          }
       }
    }
      

  3.   

    function goto(){
       var sel=document.getElementById("here");
       if(sel!=null&&typeof(sel)=="select"){
          for(var i=0;i<sel.length;i++){
            var op=sel.options[i];
            if(op!=null&&op.selected&&op.value!=doucment.location.href)
               document.location.href=op.value;
            }
          }
       }
    }