快捷导航

表单 button 提交

使用button 实现submit功能  更改action属性  js

免责声明:本内容仅代表回答者见解不代表本站观点,请谨慎对待。

版权声明:作者保留权利,不代表本站立场。

回复

使用道具 举报

参与会员2

有两种方法:方法1:[tr][/td][/tr][tr]新闻中心工程案例[/td][/tr][/table]functionSearchtype1(){vartype=document.getElementById("Searchtype").options[document.getElementById("Searchtype").selectedIndex].value;if(type=="news"){document.getElementById("form1").action="../news/index.asp"}elseif(type=="case"){document.getElementById("form1").action="../case/index.asp"}}</script>方法2:functioncheck(){if(document.form1.a[0].checked==true)document.form1.action="1.htm"elsedocument.form1.action="2.htm"}</script>转到页面一转到页面二希望对你有帮助,祝你学习愉快。
回复

使用道具 举报

buttom没有submit功能
回复

使用道具 举报

可能感兴趣的问答

发新帖
  • 微信访问
  • 手机APP