1.html代码片段 <form name="form1" method="post" action=""> <select name="select1"> <option value="a.htm" selected>a.htm</option> <option value="b.htm">b.htm</option> <option value="c.htm">c.htm</option> <option value="d.htm">d.htm</option> </select> <input type="submit" value="提交" onClick="chkaction()"> </form> 2.javascript代码片段 <script language="javascript"> function chkaction() { form1.action = form1.select1.options[form1.select1.selectedIndex].value; document.form1.submit(); } </script>