HTML 5 <input> formaction 屬性
實(shí)例
帶有兩個提交按鈕的表單(不同的 action 值):
<form action="demo_form.asp" method="get">
First name: <input type="text" name="fname" /><br />
Last name: <input type="text" name="lname" /><br />
<input type="submit" value="Submit" /><br />
<input type="submit" formaction="demo_admin.asp"
value="Submit as admin" />
</form>
HTML 4.01 與 HTML 5 之間的差異
formaction 屬性是 <input> 標(biāo)簽在 HTML5 中的新屬性。
語法
<input formaction="value">
屬性值
值 | 描述 |
---|---|
URL |
向何處發(fā)送表單數(shù)據(jù)。 可能的值:
|