实例首页
自学教程
IT工具箱
源代码
下载代码
上下布局
点击运行 >
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>html button formaction 属性实例 - 自学教程(runoops.com)</title> </head> <body> <form action="//demo.runoops.com/php/demo-form.php" method="get"> First name: <input type="text" name="fname" /><br> Last name: <input type="text" name="lname" /><br> <button type="submit">提交</button><br> <button type="submit" formaction="demo-admin.php">提交</button> </form> <p><strong>注意:</strong> Internet Explorer 9 及更早 IE 版本不支持 formaction 属性。</p> </body> </html>
运行结果: