WordPress企业主题定制/开发/优化

一个form多个提交按钮,分别提交到多页面

首页 » 精选JS » 一个form多个提交按钮,分别提交到多页面
  • <html>
  • <head>
  • <script type="text/javascript">
  • function save(){
  • document.form1.action="B.jsp";
  • document.form1.submit();
  • }
  • function send(){
  • document.form1.action="C.jsp";
  • document.form1.submit();
  • }
  • </script>
  • </head>
  • <body>
  • <form name="form1">
  • <input type="text" name="username" value="scott">
  • <input type="button" value="发送" onclick="send();">
  • <input type="button" value="保存" onclick="save();">
  • </form>
  • </body>
  • </html>
  • 分类与标签:

    精选JS

    ,

    相关项目

  • WordPress外贸企业主题

  • 最近更新

  • 热门标签