<!-- 要完成此效果把如下代碼加入到<body>區域中 --> <!-- http://www.knowsky.com --> <!-- bbs http://www.knowsky.com/bbs--> <script language="Javascript"> <!-- function gothere(){ var thebox=document.mycombowopt if (thebox.windowoption.checked){ if (!window.newwindow) newwindow=window.open("") newwindow.location= thebox.example.options[thebox.example.selectedIndex].value } else location= thebox.example.options[thebox.example.selectedIndex].value } //--> </script> <form name="mycombowopt"> <select name="example" size=1> <option value="http://www.163.com">網易</option> <option value="http://www.sohu.com">搜狐</option> <option value="http://www.sina.com.cn">新浪</option> <option value="http://www.knowsky.com">本站</option> </select> <input type="button" value="Go!" onClick="gothere()"> <br> <input type="checkbox" name="windowoption" value="ON">新窗訪問</p> </form>