HTML 5 <button> formaction ÊôÐÔ
ʵÀý
´øÓÐÁ½¸öÌá½»°´Å¥µÄ±íµ¥£¨´øÓв»Í¬µÄ action£©£º
<form action="demo_form.asp" method="get">
First name: <input type="text" name="fname" />
Last name: <input type="text" name="lname" />
<button type="submit">Ìá½»</button><br />
<button type="submit" formaction="demo_admin.asp"
>ÒÔ¹ÜÀíÔ±Éí·ÝÌá½»</button>
</form>
HTML 4.01 Óë HTML 5 Ö®¼äµÄ²îÒì
formaction ÊôÐÔÊÇ HTML 5 ÖеÄÐÂÊôÐÔ¡£
Óï·¨
<button formaction="value">